Joerg Sonnenberger
75644dafe5
jsoncpp: Fix compilation as C99 on Solaris
...
In C99 mode, Solaris variants may already define isfinite, so check for
the existence first.
2015-09-14 09:40:38 -04:00
Michael Scott
9217b678b3
jsoncpp: Provide 'isfinite' impl on more HP-UX versions ( #15576 )
...
Some versions of HP-UX do not define 'isfinite' or 'finite' in math.h
for Itanium when preprocessing with C++, so we have to add the
definition ourselves instead to map to the internal version.
2015-05-26 10:12:25 -04:00
Ådne Hovda
7b1cdb0027
jsoncpp: Provide 'isfinite' implementation on older AIX and HP-UX
...
Newer AIX and HP-UX platforms provide 'isfinite' as a <math.h> macro.
Older versions do not, so add the definition if it is not provided.
2015-03-31 14:55:00 -04:00
Brad King
a02fbec5f3
jsoncpp: Drop doxygen comments that cause Clang warnings
...
Even though we disable warnings when building jsoncpp itself, including
its headers from other CMake sources may still cause warnings. Update
the code to remove these -Wdocumentation warnings.
2015-01-20 09:28:28 -05:00
Brad King
89cd3d273d
jsoncpp: Add README-CMake.txt
...
Describe how to update jsoncpp from upstream.
2015-01-15 11:39:20 -05:00
Brad King
7e310624b0
jsoncpp: Provide 'isfinite' implementation on Solaris
...
Solaris provides a 'finite' function in <ieeefp.h>.
2015-01-15 11:39:20 -05:00
Brad King
4c49606598
jsoncpp: Provide 'isfinite' implementation on ancient glibc
...
The glibc 2.1 headers provide isfinite only in C99 mode.
Add its definition ourselves.
2015-01-15 11:39:04 -05:00
Brad King
50032bc847
jsoncpp: Add missing assert before strcmp in json_value.cpp
...
The strcmp function does not allow NULL pointers, so add an
assert to tell Clang scan-build that the code does not expect
a NULL pointer.
2015-01-15 11:39:03 -05:00
Brad King
ad94b0521e
jsoncpp: Add missing <iosfwd> include in json/writer.h
...
The header uses std::ostream, so it must be declared.
2015-01-15 11:39:03 -05:00
Brad King
7eba04fda1
jsoncpp: Include C headers since we use APIs without std::
2015-01-15 11:39:03 -05:00
Brad King
06f41e986c
jsoncpp: Disable warnings to avoid changing 3rd party code
...
Add '-w' or equivalent flag on compilers supporting it.
Tell MSVC to use its lowest warning level inside jsoncpp sources.
2015-01-15 11:39:01 -05:00
Brad King
1fc556536e
jsoncpp: Build the library within CMake
...
Update json/json.h to account for our lack of autolink.h. Update
json/config.h to include KWSys Large File Support configuration so that
consistent stream libraries are used (on AIX with XL).
Add a cm_jsoncpp_reader.h header to include the CMake-provided copy of
the json/reader.h header from CMake sources.
2015-01-15 11:37:17 -05:00
Brad King
84d5674d4e
jsoncpp: Include "config.h" before system headers
2015-01-15 11:36:49 -05:00
Brad King
a263d519ff
Merge branch 'jsoncpp-upstream' into import-jsoncpp
...
Use a subtree merge to place the upstream content in the
Utilities/cmjsoncpp directory.
2015-01-13 14:42:00 -05:00
Brad King
32fd56b066
jsoncpp: Add .gitattributes to skip whitespace checks
2015-01-13 10:36:19 -05:00