mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-04 14:50:23 +00:00
jsoncpp: Provide 'isfinite' implementation on Solaris
Solaris provides a 'finite' function in <ieeefp.h>.
This commit is contained in:
@@ -21,6 +21,12 @@
|
|||||||
#define snprintf _snprintf
|
#define snprintf _snprintf
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Solaris
|
||||||
|
#if defined(__sun)
|
||||||
|
# include <ieeefp.h>
|
||||||
|
# define isfinite finite
|
||||||
|
#endif
|
||||||
|
|
||||||
// Ancient glibc
|
// Ancient glibc
|
||||||
#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ < 2
|
#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ < 2
|
||||||
# if !defined(isfinite)
|
# if !defined(isfinite)
|
||||||
|
|||||||
Reference in New Issue
Block a user