Jacek Caban : math.h: Use builtin nan and inf on clang MSVC target.

Alexandre Julliard julliard at winehq.org
Mon Apr 27 15:19:29 CDT 2020


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Mon Apr 27 01:19:28 2020 +0200

math.h: Use builtin nan and inf on clang MSVC target.

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

---

 include/msvcrt/math.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/msvcrt/math.h b/include/msvcrt/math.h
index 76601de853..01c4a4b61b 100644
--- a/include/msvcrt/math.h
+++ b/include/msvcrt/math.h
@@ -205,7 +205,7 @@ static const union {
 #  endif
 #endif
 
-#if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)))
+#if (defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)))) || defined(__clang__)
 # define INFINITY __builtin_inff()
 # define NAN      __builtin_nanf("")
 #else




More information about the wine-cvs mailing list