]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 7.4.1487 v7.4.1487
authorBram Moolenaar <Bram@vim.org>
Fri, 4 Mar 2016 21:19:21 +0000 (22:19 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 4 Mar 2016 21:19:21 +0000 (22:19 +0100)
Problem:    For WIN32 isinf() is defined as a macro.
Solution:   Define it as an inline function. (ZyX)

src/macros.h
src/version.c

index b86c479e720486f7e37a2095ec01da244d77d786..0f0a7d425818ba4f313978114b0eecdf6d3c9e59 100644 (file)
 #  if defined(WIN32)
 #   ifndef isnan
 #    define isnan(x) _isnan(x)
-#    define isinf(x) (!_finite(x) && !_isnan(x))
+     static inline int isinf(double x) { return !_finite(x) && !_isnan(x); }
 #   endif
 #  else
 #   ifndef HAVE_ISNAN
index ace7ff14c85ac6f6959869f5eb1b77c60f135fc4..3623a099f8bbce02cdd5cb2bfefdb391407ec120 100644 (file)
@@ -743,6 +743,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1487,
 /**/
     1486,
 /**/