diff options
author | Karl Lew <karl@firepick.org> | 2014-04-06 04:28:52 +0000 |
---|---|---|
committer | Karl Lew <karl@firepick.org> | 2014-04-06 04:28:52 +0000 |
commit | 33e498818017d28ecd1e5aa52382a00dcf66c533 (patch) | |
tree | f5adba7cedf03926d9649c850739520b6d160b7d /src/value.c | |
parent | 88aa6a9e30e7465196a737bd0f82eb17f393a120 (diff) | |
download | jansson-33e498818017d28ecd1e5aa52382a00dcf66c533.zip jansson-33e498818017d28ecd1e5aa52382a00dcf66c533.tar.gz jansson-33e498818017d28ecd1e5aa52382a00dcf66c533.tar.bz2 |
SmartOS build fix
Diffstat (limited to 'src/value.c')
-rw-r--r-- | src/value.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 |