Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpx/lua-cjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2011-10-07 16:21:31 +0400
committerMark Pulford <mark@kyne.com.au>2011-10-07 16:21:31 +0400
commit48c5cf183fa7cab608168fdec2406a1ca3cb2c11 (patch)
tree76b385d490badeb00cf6ced3b59843ef94f20c34 /lua_cjson.c
parent0f3ab84a261292d16f684551e67f2f007199936a (diff)
Rename MISSING_ISINF to USE_INTERNAL_ISINF
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 151fa39..ad3818d 100644
--- a/lua_cjson.c
+++ b/lua_cjson.c
@@ -66,8 +66,8 @@
#define LOCALE_RESTORE(x) do { } while(0)
#endif
-#ifdef MISSING_ISINF
-/* Some Solaris platforms are missing isinf(). Define here. */
+/* Some Solaris platforms are missing isinf(). */
+#if defined(USE_INTERNAL_ISINF) || defined(MISSING_ISINF)
#define isinf(x) (!isnan(x) && isnan((x) - (x)))
#endif