summaryrefslogtreecommitdiff
path: root/src/macros.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-03-04 22:19:21 +0100
committerBram Moolenaar <Bram@vim.org>2016-03-04 22:19:21 +0100
commit6300317b15eb33409f652c603fb402417fe4eed7 (patch)
tree23125594387b4c64556f8c41e31dd0b80d9ca2ab /src/macros.h
parentf3654827368e6204608036353a0360e9e7c21e02 (diff)
downloadvim-git-6300317b15eb33409f652c603fb402417fe4eed7.tar.gz
patch 7.4.1487v7.4.1487
Problem: For WIN32 isinf() is defined as a macro. Solution: Define it as an inline function. (ZyX)
Diffstat (limited to 'src/macros.h')
-rw-r--r--src/macros.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/macros.h b/src/macros.h
index b86c479e7..0f0a7d425 100644
--- 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