View | Details | Raw Unified | Return to bug 213992 | Differences between
and this patch

Collapse All | Expand All

(-)devel/jsoncpp/Makefile (+5 lines)
Lines 26-33 Link Here
26
# Certain new compiler features unlock parts of jsoncpp API (ex. see JSON_HAS_RVALUE_REFERENCES).
26
# Certain new compiler features unlock parts of jsoncpp API (ex. see JSON_HAS_RVALUE_REFERENCES).
27
# Use c++11 above to be the most inclusive.
27
# Use c++11 above to be the most inclusive.
28
USES+=		compiler:c++11-lang
28
USES+=		compiler:c++11-lang
29
# lang/gcc5 fix
30
.if ${COMPILER_TYPE} == clang
29
CXXFLAGS+=	--std=c++11
31
CXXFLAGS+=	--std=c++11
32
.else
33
CXXFLAGS+=	--std=gnu++11 -D_GLIBCXX_USE_C99=1
30
.endif
34
.endif
35
.endif
31
36
32
do-install:
37
do-install:
33
	@${MKDIR} ${STAGEDIR}${PREFIX}/include/jsoncpp
38
	@${MKDIR} ${STAGEDIR}${PREFIX}/include/jsoncpp
(-)devel/jsoncpp/files/patch-src_lib__json_json__reader.cpp (+14 lines)
Added Link Here
1
--- src/lib_json/json_reader.cpp.orig	2016-10-30 21:28:16 UTC
2
+++ src/lib_json/json_reader.cpp
3
@@ -3,6 +3,11 @@
4
 // recognized in your jurisdiction.
5
 // See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
6
 
7
+// fix for lang/gcc5
8
+#if __GNUC__ == 5 && __GNUC_MINOR__ == 4
9
+#include <cstdio>
10
+#endif
11
+
12
 #if !defined(JSON_IS_AMALGAMATION)
13
 #include <json/assertions.h>
14
 #include <json/reader.h>
(-)devel/jsoncpp/files/patch-src_lib__json_json__writer.cpp (+14 lines)
Added Link Here
1
--- src/lib_json/json_writer.cpp.orig	2016-10-30 21:27:18 UTC
2
+++ src/lib_json/json_writer.cpp
3
@@ -3,6 +3,11 @@
4
 // recognized in your jurisdiction.
5
 // See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
6
 
7
+// fix for lang/gcc5
8
+#if __GNUC__ == 5 && __GNUC_MINOR__ == 4
9
+#include <cstdio>
10
+#endif
11
+
12
 #if !defined(JSON_IS_AMALGAMATION)
13
 #include <json/writer.h>
14
 #include "json_tool.h"

Return to bug 213992