Jacek Caban : wine/test.h: Remove NAN and INFINITY macros.

Alexandre Julliard julliard at winehq.org
Mon May 18 15:00:14 CDT 2020


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Mon May 18 14:32:31 2020 +0200

wine/test.h: Remove NAN and INFINITY macros.

Those are available in UCRT (MSVC since 2015) and cause redefinition
warnings if math.h is included after test.h.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 include/wine/test.h | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/include/wine/test.h b/include/wine/test.h
index 9967094671..84ac1e516b 100644
--- a/include/wine/test.h
+++ b/include/wine/test.h
@@ -44,15 +44,6 @@
 #define INVALID_SET_FILE_POINTER (~0u)
 #endif
 
-#ifdef _MSC_VER
-# ifndef INFINITY
-#  define INFINITY ((float)HUGE_VAL)
-# endif
-# ifndef NAN
-#  define NAN (INFINITY * 0.0f)
-# endif
-#endif
-
 /* debug level */
 extern int winetest_debug;
 




More information about the wine-cvs mailing list