mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 06:09:14 -05:00
jsoncpp: Provide 'isfinite' implementation on ancient glibc
The glibc 2.1 headers provide isfinite only in C99 mode. Add its definition ourselves.
This commit is contained in:
@@ -21,6 +21,13 @@
|
||||
#define snprintf _snprintf
|
||||
#endif
|
||||
|
||||
// Ancient glibc
|
||||
#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ < 2
|
||||
# if !defined(isfinite)
|
||||
# define isfinite __finite
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) && _MSC_VER >= 1400 // VC++ 8.0
|
||||
// Disable warning about strdup being deprecated.
|
||||
#pragma warning(disable : 4996)
|
||||
|
||||
Reference in New Issue
Block a user