aboutsummaryrefslogtreecommitdiff
path: root/lua-cjson-1.0.3-1.rockspec
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2011-10-07 23:55:49 +1030
committerMark Pulford <mark@kyne.com.au>2011-10-07 23:55:49 +1030
commit049691cb11115fbdb750021556cad3507fad4e69 (patch)
tree3ef83227a086c2dbd70633a55a8425335a8e92fb /lua-cjson-1.0.3-1.rockspec
parent48c5cf183fa7cab608168fdec2406a1ca3cb2c11 (diff)
downloadlua-cjson-049691cb11115fbdb750021556cad3507fad4e69.tar.gz
lua-cjson-049691cb11115fbdb750021556cad3507fad4e69.tar.bz2
lua-cjson-049691cb11115fbdb750021556cad3507fad4e69.zip
Add USE_POSIX_SETLOCALE option
Add USE_POSIX_SETLOCALE option for platforms missing uselocale(). Document locale options in README, Makefile & rockspec. Also: - Rename USE_POSIX_LOCALE define to USE_POSIX_USELOCALE. - Use uselocale() by default through Makefile (Linux, OSX). - Use setlocale() by default through rockspec (other platforms).
Diffstat (limited to 'lua-cjson-1.0.3-1.rockspec')
-rw-r--r--lua-cjson-1.0.3-1.rockspec5
1 files changed, 4 insertions, 1 deletions
diff --git a/lua-cjson-1.0.3-1.rockspec b/lua-cjson-1.0.3-1.rockspec
index 3f8e981..28514e1 100644
--- a/lua-cjson-1.0.3-1.rockspec
+++ b/lua-cjson-1.0.3-1.rockspec
@@ -25,9 +25,12 @@ build = {
25 cjson = { 25 cjson = {
26 sources = { "lua_cjson.c", "strbuf.c" }, 26 sources = { "lua_cjson.c", "strbuf.c" },
27-- Optional workarounds: 27-- Optional workarounds:
28-- USE_POSIX_USELOCALE: Linux, OSX. Thread safe. Recommended.
29-- USE_POSIX_SETLOCALE: Works on all ANSI C platforms. May be used when
30-- thread-safety isn't required.
28-- USE_INTERNAL_ISINF: Provide internal isinf() implementation. Required 31-- USE_INTERNAL_ISINF: Provide internal isinf() implementation. Required
29-- on some Solaris platforms. 32-- on some Solaris platforms.
30 defines = { "VERSION=\"1.0.3\"" } 33 defines = { "VERSION=\"1.0.3\"", "USE_POSIX_SETLOCALE" }
31 } 34 }
32 }, 35 },
33 copy_directories = { "tests" } 36 copy_directories = { "tests" }