diff options
| author | Mark Pulford <mark@kyne.com.au> | 2012-01-01 23:30:34 +1030 |
|---|---|---|
| committer | Mark Pulford <mark@kyne.com.au> | 2012-01-01 23:30:34 +1030 |
| commit | 77408a81a696472338c2f90147e41fff3e81005d (patch) | |
| tree | a4972c000f94d416df20f8786f4e75e3ded5d263 /Makefile | |
| parent | 929c814b12e3575859fa0d5a8ea9950ae2187c56 (diff) | |
| download | lua-cjson-77408a81a696472338c2f90147e41fff3e81005d.tar.gz lua-cjson-77408a81a696472338c2f90147e41fff3e81005d.tar.bz2 lua-cjson-77408a81a696472338c2f90147e41fff3e81005d.zip | |
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.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
| @@ -2,8 +2,10 @@ LUA_VERSION = 5.1 | |||
| 2 | 2 | ||
| 3 | ## Available defines for CJSON_CFLAGS | 3 | ## Available defines for CJSON_CFLAGS |
| 4 | # | 4 | # |
| 5 | # USE_INTERNAL_ISINF: Workaround for Solaris platforms missing isinf(). | 5 | # USE_INTERNAL_ISINF: Workaround for Solaris platforms missing isinf(). |
| 6 | # DISABLE_CJSON_GLOBAL: Do not store module is "cjson" global | 6 | # DISABLE_CJSON_GLOBAL: Do not store module is "cjson" global. |
| 7 | # DISABLE_INVALID_NUMBERS: Permanently disable invalid JSON numbers: | ||
| 8 | # - NaN, Infinity, hex. | ||
| 7 | 9 | ||
| 8 | ## Build defaults | 10 | ## Build defaults |
| 9 | TARGET = cjson.so | 11 | TARGET = cjson.so |
| @@ -38,7 +40,7 @@ INSTALL_CMD = install | |||
| 38 | ## Windows (MinGW) | 40 | ## Windows (MinGW) |
| 39 | #TARGET = cjson.dll | 41 | #TARGET = cjson.dll |
| 40 | #PREFIX = /home/user/opt | 42 | #PREFIX = /home/user/opt |
| 41 | #CJSON_CFLAGS = | 43 | #CJSON_CFLAGS = -DDISABLE_INVALID_NUMBERS |
| 42 | #CJSON_LDFLAGS = -shared -L$(PREFIX)/lib -llua51 | 44 | #CJSON_LDFLAGS = -shared -L$(PREFIX)/lib -llua51 |
| 43 | 45 | ||
| 44 | ## End platform specific section | 46 | ## End platform specific section |
