commit | 6300317b15eb33409f652c603fb402417fe4eed7 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Mar 04 22:19:21 2016 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Mar 04 22:19:21 2016 +0100 |
tree | 23125594387b4c64556f8c41e31dd0b80d9ca2ab | |
parent | f3654827368e6204608036353a0360e9e7c21e02 [diff] [blame] |
patch 7.4.1487 Problem: For WIN32 isinf() is defined as a macro. Solution: Define it as an inline function. (ZyX)
diff --git a/src/macros.h b/src/macros.h index b86c479..0f0a7d4 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