Stefan Dösinger : includes: Newer Visual Studio versions have isfinite and friends.

Alexandre Julliard julliard at winehq.org
Mon Nov 18 16:19:18 CST 2019


Module: wine
Branch: master
Commit: af7ace7990602976dc2bd7f59e3d24ea465ff6cb
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=af7ace7990602976dc2bd7f59e3d24ea465ff6cb

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Sun Nov 17 13:43:13 2019 +0100

includes: Newer Visual Studio versions have isfinite and friends.

Signed-off-by: Stefan Dösinger <stefan at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 include/wine/port.h | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/include/wine/port.h b/include/wine/port.h
index d23e2b033f..b3ef4b905a 100644
--- a/include/wine/port.h
+++ b/include/wine/port.h
@@ -58,9 +58,15 @@
 #ifdef _MSC_VER
 
 #define ftruncate chsize
-#define isfinite(x) _finite(x)
-#define isinf(x) (!(_finite(x) || _isnan(x)))
-#define isnan(x) _isnan(x)
+#ifndef isfinite
+# define isfinite(x) _finite(x)
+#endif
+#ifndef isinf
+# define isinf(x) (!(_finite(x) || _isnan(x)))
+#endif
+#ifndef isnan
+# define isnan(x) _isnan(x)
+#endif
 #define popen _popen
 #define pclose _pclose
 #define snprintf _snprintf




More information about the wine-cvs mailing list