aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2011-10-07 22:51:31 +1030
committerMark Pulford <mark@kyne.com.au>2011-10-07 22:51:31 +1030
commit48c5cf183fa7cab608168fdec2406a1ca3cb2c11 (patch)
tree76b385d490badeb00cf6ced3b59843ef94f20c34 /lua
parent0f3ab84a261292d16f684551e67f2f007199936a (diff)
downloadlua-cjson-48c5cf183fa7cab608168fdec2406a1ca3cb2c11.tar.gz
lua-cjson-48c5cf183fa7cab608168fdec2406a1ca3cb2c11.tar.bz2
lua-cjson-48c5cf183fa7cab608168fdec2406a1ca3cb2c11.zip
Rename MISSING_ISINF to USE_INTERNAL_ISINF
Diffstat (limited to '')
-rw-r--r--lua-cjson-1.0.3-1.rockspec3
-rw-r--r--lua_cjson.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/lua-cjson-1.0.3-1.rockspec b/lua-cjson-1.0.3-1.rockspec
index 1550ae9..3f8e981 100644
--- a/lua-cjson-1.0.3-1.rockspec
+++ b/lua-cjson-1.0.3-1.rockspec
@@ -24,6 +24,9 @@ build = {
24 modules = { 24 modules = {
25 cjson = { 25 cjson = {
26 sources = { "lua_cjson.c", "strbuf.c" }, 26 sources = { "lua_cjson.c", "strbuf.c" },
27-- Optional workarounds:
28-- USE_INTERNAL_ISINF: Provide internal isinf() implementation. Required
29-- on some Solaris platforms.
27 defines = { "VERSION=\"1.0.3\"" } 30 defines = { "VERSION=\"1.0.3\"" }
28 } 31 }
29 }, 32 },
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 @@
66#define LOCALE_RESTORE(x) do { } while(0) 66#define LOCALE_RESTORE(x) do { } while(0)
67#endif 67#endif
68 68
69#ifdef MISSING_ISINF 69/* Some Solaris platforms are missing isinf(). */
70/* Some Solaris platforms are missing isinf(). Define here. */ 70#if defined(USE_INTERNAL_ISINF) || defined(MISSING_ISINF)
71#define isinf(x) (!isnan(x) && isnan((x) - (x))) 71#define isinf(x) (!isnan(x) && isnan((x) - (x)))
72#endif 72#endif
73 73