diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-03-04 22:19:21 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-03-04 22:19:21 +0100 |
commit | 6300317b15eb33409f652c603fb402417fe4eed7 (patch) | |
tree | 23125594387b4c64556f8c41e31dd0b80d9ca2ab /src/macros.h | |
parent | f3654827368e6204608036353a0360e9e7c21e02 (diff) | |
download | vim-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.h | 2 |
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 |