mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-29 04:09:35 +03:00
jsoncpp: Provide 'isfinite' implementation on Solaris
Solaris provides a 'finite' function in <ieeefp.h>.
This commit is contained in:
1 parent
4c49606598
commit
7e310624b0
1 file changed
+6
@@ -21,6 +21,12 @@
|
||||
#define snprintf _snprintf
|
||||
#endif
|
||||
|
||||
// Solaris
|
||||
#if defined(__sun)
|
||||
# include <ieeefp.h>
|
||||
# define isfinite finite
|
||||
#endif
|
||||
|
||||
// Ancient glibc
|
||||
#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ < 2
|
||||
# if !defined(isfinite)
|
||||
|
||||
Reference in new issue
Block a user