From 77408a81a696472338c2f90147e41fff3e81005d Mon Sep 17 00:00:00 2001 From: Mark Pulford Date: Sun, 1 Jan 2012 23:30:34 +1030 Subject: Add build option to disable invalid numbers Windows MinGW doesn't convert Infinity/NaN/hexadecimal numbers. Add DISABLE_INVALID_NUMBERS build option option to disable invalid numbers. --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 085e78a..999b877 100644 --- a/Makefile +++ b/Makefile @@ -2,8 +2,10 @@ LUA_VERSION = 5.1 ## Available defines for CJSON_CFLAGS # -# USE_INTERNAL_ISINF: Workaround for Solaris platforms missing isinf(). -# DISABLE_CJSON_GLOBAL: Do not store module is "cjson" global +# USE_INTERNAL_ISINF: Workaround for Solaris platforms missing isinf(). +# DISABLE_CJSON_GLOBAL: Do not store module is "cjson" global. +# DISABLE_INVALID_NUMBERS: Permanently disable invalid JSON numbers: +# - NaN, Infinity, hex. ## Build defaults TARGET = cjson.so @@ -38,7 +40,7 @@ INSTALL_CMD = install ## Windows (MinGW) #TARGET = cjson.dll #PREFIX = /home/user/opt -#CJSON_CFLAGS = +#CJSON_CFLAGS = -DDISABLE_INVALID_NUMBERS #CJSON_LDFLAGS = -shared -L$(PREFIX)/lib -llua51 ## End platform specific section -- cgit v1.2.3-55-g6feb