From 663fbfb7a4f697a1143bc613fd4153cf4640a5e5 Mon Sep 17 00:00:00 2001 From: firepick1 Date: Fri, 4 Apr 2014 17:28:08 -0700 Subject: [PATCH] SmartOS (Solaris) build --- src/value.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/value.c b/src/value.c index 644bc87..438a4de 100644 --- a/src/value.c +++ b/src/value.c @@ -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