aboutsummaryrefslogtreecommitdiff
path: root/lua_cjson.c
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2011-11-29 22:41:29 +1030
committerMark Pulford <mark@kyne.com.au>2011-11-29 22:41:29 +1030
commit37a77c2dcbbae5d05d669479822012d125a289dd (patch)
tree579c604c9d87ad2ad9aeace1d25299a071a5225c /lua_cjson.c
parentd8a22c7770b72111c9779dd5df8cdebafd431fef (diff)
downloadlua-cjson-37a77c2dcbbae5d05d669479822012d125a289dd.tar.gz
lua-cjson-37a77c2dcbbae5d05d669479822012d125a289dd.tar.bz2
lua-cjson-37a77c2dcbbae5d05d669479822012d125a289dd.zip
Suppress isinf() define when it already exists
Diffstat (limited to 'lua_cjson.c')
-rw-r--r--lua_cjson.c4
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