SmartOS (Solaris) build

This commit is contained in:
firepick1 2014-04-04 17:28:08 -07:00
parent 88aa6a9e30
commit 663fbfb7a4

View File

@ -29,8 +29,10 @@
/* Work around nonstandard isnan() and isinf() implementations */
#ifndef isnan
#ifndef sun
static JSON_INLINE int isnan(double x) { return x != x; }
#endif
#endif
#ifndef isinf
static JSON_INLINE int isinf(double x) { return !isnan(x) && isnan(x - x); }
#endif