SmartOS build fix

This commit is contained in:
Karl Lew
2014-04-06 04:28:52 +00:00
parent 88aa6a9e30
commit 33e4988180
2 changed files with 3 additions and 0 deletions

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