Hi Bram,
2016/3/5 Sat 6:19:44 UTC+9 Bram Moolenaar wrote:
> Patch 7.4.1487
> Problem: For WIN32 isinf() is defined as a macro.
> Solution: Define it as an inline function. (ZyX)
> Files: src/macros.h
> ! static inline int isinf(double x) { return !_finite(x) && !_isnan(x); }
Old MSVC doesn't support C99's inline keyword. It should be __inline:
diff --git a/src/macros.h b/src/macros.h
--- a/src/macros.h
+++ b/src/macros.h
@@ -331,7 +331,7 @@
# if defined(WIN32)
# ifndef isnan
# define isnan(x) _isnan(x)
- static inline int isinf(double x) { return !_finite(x) && !_isnan(x); }
+ static __inline int isinf(double x) { return !_finite(x) && !_isnan(x); }
# endif
# else
# ifndef HAVE_ISNAN
Regards,
Ken Takata
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.