summaryrefslogtreecommitdiffstats
path: root/src/json.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-02-27 20:14:15 +0100
committerBram Moolenaar <Bram@vim.org>2016-02-27 20:14:15 +0100
commit136f29a91dbafce424e31a4af133155f997e8f78 (patch)
treec8f62de847e195719732366ec05df2f21f74f000 /src/json.c
parente98991b8cfaf29016d14b8ec437d3dedfc0a5eb7 (diff)
patch 7.4.1437v7.4.1437
Problem: Old system doesn't have isinf() and NAN. (Ben Fritz) Solution: Adjust #ifdefs. Detect isnan() and isinf() functions with configure. Use a replacement when missing. (Kazunobu Kuriyama)
Diffstat (limited to 'src/json.c')
-rw-r--r--src/json.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/json.c b/src/json.c
index da585e306d..a704fd5eb5 100644
--- a/src/json.c
+++ b/src/json.c
@@ -17,24 +17,6 @@
#if defined(FEAT_EVAL) || defined(PROTO)
-#if defined(FEAT_FLOAT)
-# include <float.h>
-# if defined(HAVE_MATH_H)
- /* for isnan() and isinf() */
-# include <math.h>
-# endif
-# if defined(WIN32) && !defined(isnan)
-# define isnan(x) _isnan(x)
-# define isinf(x) (!_finite(x) && !_isnan(x))
-# endif
-# if !defined(INFINITY) && defined(DBL_MAX)
-# define INFINITY (DBL_MAX+DBL_MAX)
-# endif
-# if !defined(NAN) && defined(INFINITY)
-# define NAN (INFINITY-INFINITY)
-# endif
-#endif
-
static int json_encode_item(garray_T *gap, typval_T *val, int copyID, int options);
static int json_decode_item(js_read_T *reader, typval_T *res, int options);