FreeBSD Bugzilla – Attachment 176629 Details for
Bug 213992
devel/jsoncpp: fix for lang/gcc5
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix for lang/gcc5
patch-jsoncpp-kpsalerno-gcc5 (text/plain), 1.68 KB, created by
Kenneth Salerno
on 2016-11-04 16:12:49 UTC
(
hide
)
Description:
Fix for lang/gcc5
Filename:
MIME Type:
Creator:
Kenneth Salerno
Created:
2016-11-04 16:12:49 UTC
Size:
1.68 KB
patch
obsolete
>Index: devel/jsoncpp/Makefile >=================================================================== >--- devel/jsoncpp/Makefile (revision 423562) >+++ devel/jsoncpp/Makefile (working copy) >@@ -26,8 +26,13 @@ > # Certain new compiler features unlock parts of jsoncpp API (ex. see JSON_HAS_RVALUE_REFERENCES). > # Use c++11 above to be the most inclusive. > USES+= compiler:c++11-lang >+# lang/gcc5 fix >+.if ${COMPILER_TYPE} == clang > CXXFLAGS+= --std=c++11 >+.else >+CXXFLAGS+= --std=gnu++11 -D_GLIBCXX_USE_C99=1 > .endif >+.endif > > do-install: > @${MKDIR} ${STAGEDIR}${PREFIX}/include/jsoncpp >--- /dev/null 2016-10-30 17:33:48.000000000 -0400 >+++ devel/jsoncpp/files/patch-src_lib__json_json__reader.cpp 2016-10-30 17:34:37.691449000 -0400 >@@ -0,0 +1,14 @@ >+--- src/lib_json/json_reader.cpp.orig 2016-10-30 21:28:16 UTC >++++ src/lib_json/json_reader.cpp >+@@ -3,6 +3,11 @@ >+ // recognized in your jurisdiction. >+ // See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE >+ >++// fix for lang/gcc5+ >++#if __GNUC__ == 5 >++#include <cstdio> >++#endif >++ >+ #if !defined(JSON_IS_AMALGAMATION) >+ #include <json/assertions.h> >+ #include <json/reader.h> >--- /dev/null 2016-10-30 17:33:48.000000000 -0400 >+++ devel/jsoncpp/files/patch-src_lib__json_json__writer.cpp 2016-10-30 17:34:37.692665000 -0400 >@@ -0,0 +1,14 @@ >+--- src/lib_json/json_writer.cpp.orig 2016-10-30 21:27:18 UTC >++++ src/lib_json/json_writer.cpp >+@@ -3,6 +3,11 @@ >+ // recognized in your jurisdiction. >+ // See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE >+ >++// fix for lang/gcc5+ >++#if __GNUC__ == 5 >++#include <cstdio> >++#endif >++ >+ #if !defined(JSON_IS_AMALGAMATION) >+ #include <json/writer.h> >+ #include "json_tool.h"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 213992
:
176391
|
176420
|
176493
|
176494
|
176495
|
176496
| 176629