diff options
-rw-r--r-- | lua_cjson.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua_cjson.c b/lua_cjson.c index 8efd127..2759d59 100644 --- a/lua_cjson.c +++ b/lua_cjson.c | |||
@@ -86,8 +86,8 @@ | |||
86 | 86 | ||
87 | #endif | 87 | #endif |
88 | 88 | ||
89 | /* Some Solaris platforms are missing isinf(). */ | 89 | /* Workaround for Solaris platforms missing isinf() */ |
90 | #if defined(USE_INTERNAL_ISINF) || defined(MISSING_ISINF) | 90 | #if !defined(isinf) && (defined(USE_INTERNAL_ISINF) || defined(MISSING_ISINF)) |
91 | #define isinf(x) (!isnan(x) && isnan((x) - (x))) | 91 | #define isinf(x) (!isnan(x) && isnan((x) - (x))) |
92 | #endif | 92 | #endif |
93 | 93 | ||