0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 7.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)
This commit is contained in:
Bram Moolenaar
2016-02-27 20:14:15 +01:00
parent e98991b8cf
commit 136f29a91d
8 changed files with 85 additions and 34 deletions

View File

@@ -27,16 +27,6 @@
# include <time.h> /* for time_t */
#endif
#if defined(FEAT_FLOAT)
# include <float.h>
# if defined(HAVE_MATH_H)
# include <math.h>
# endif
# if defined(WIN32) && !defined(isnan)
# define isnan(x) _isnan(x)
# endif
#endif
#define DICT_MAXNEST 100 /* maximum nesting of lists and dicts */
#define DO_NOT_FREE_CNT 99999 /* refcount for dict or list that should not