[PATCH] msvcrt: Support 64-bit platforms that don't have finitef or isnanf.
Charles Davis
cdavis5x at gmail.com
Fri Jan 23 00:30:57 CST 2015
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
More information about the wine-patches
mailing list