changeset 8390:2230c0da23bd v7.4.1487

commit https://github.com/vim/vim/commit/6300317b15eb33409f652c603fb402417fe4eed7 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 4 22:19:21 2016 +0100 patch 7.4.1487 Problem: For WIN32 isinf() is defined as a macro. Solution: Define it as an inline function. (ZyX)
author Christian Brabandt <cb@256bit.org>
date Fri, 04 Mar 2016 22:30:05 +0100
parents 45859983b3c3
children b7b6b632a706
files src/macros.h src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/macros.h
+++ b/src/macros.h
@@ -331,7 +331,7 @@
 #  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
--- a/src/version.c
+++ b/src/version.c
@@ -744,6 +744,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1487,
+/**/
     1486,
 /**/
     1485,