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

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2020-04-27 01:19:28 +02:00 committed by Alexandre Julliard
parent b00a6e6e30
commit 8941d8e036
1 changed files with 1 additions and 1 deletions

View File

@ -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