diff options
Diffstat (limited to '')
| -rw-r--r-- | lua_cjson.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lua_cjson.c b/lua_cjson.c index b46e915..076c56f 100644 --- a/lua_cjson.c +++ b/lua_cjson.c | |||
| @@ -44,6 +44,10 @@ | |||
| 44 | 44 | ||
| 45 | #include "strbuf.h" | 45 | #include "strbuf.h" |
| 46 | 46 | ||
| 47 | #ifdef MISSING_ISINF | ||
| 48 | #define isinf(x) (!isnan(x) && isnan((x) - (x))) | ||
| 49 | #endif | ||
| 50 | |||
| 47 | #define DEFAULT_SPARSE_CONVERT 0 | 51 | #define DEFAULT_SPARSE_CONVERT 0 |
| 48 | #define DEFAULT_SPARSE_RATIO 2 | 52 | #define DEFAULT_SPARSE_RATIO 2 |
| 49 | #define DEFAULT_SPARSE_SAFE 10 | 53 | #define DEFAULT_SPARSE_SAFE 10 |
