From: Charles Davis Subject: [PATCH] msvcrt: Support 64-bit platforms that don't have finitef or isnanf. Message-Id: <1421994657-3972-4-git-send-email-cdavis5x@gmail.com> Date: Thu, 22 Jan 2015 23:30:57 -0700 diff --git a/configure.ac b/configure.ac index 6f1861c..ea8d04a 100644 --- a/configure.ac +++ b/configure.ac @@ -2061,6 +2061,7 @@ AC_CHECK_FUNCS(\ dlopen \ epoll_create \ ffs \ + finitef \ fnmatch \ fork \ fpclass \ @@ -2077,6 +2078,7 @@ AC_CHECK_FUNCS(\ gettimeofday \ getuid \ if_nameindex \ + isnanf \ kqueue \ lstat \ memmove \ diff --git a/dlls/msvcrt/math.c b/dlls/msvcrt/math.c index 284924a..acac35d 100644 --- a/dlls/msvcrt/math.c +++ b/dlls/msvcrt/math.c @@ -34,6 +34,18 @@ WINE_DEFAULT_DEBUG_CHANNEL(msvcrt); +#ifndef HAVE_FINITEF +#define finitef(x) isfinite(x) +#endif + +#ifndef HAVE_ISNANF +#ifdef HAVE_ISNAN +#define isnanf(x) isnan(x) +#else +#define isnanf(x) 0 +#endif +#endif + #ifndef signbit #define signbit(x) 0 #endif -- 2.2.2