Commit 342c5da7 authored by Martin Storsjo's avatar Martin Storsjo Committed by Alexandre Julliard

configure, msvcrt: Check for the finite() function just like finitef().

If missing, fall back on the C99 isfinite() macro, just like the existing finitef() fallback. The finite() function is deprecated in macOS 10.9 and is removed (from the SDK) since macOS 11.0. Signed-off-by: 's avatarMartin Storsjo <martin@martin.st> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 11bb6deb
......@@ -18037,6 +18037,7 @@ for ac_func in \
_spawnvp \
epoll_create \
ffs \
finite \
finitef \
fnmatch \
fork \
......
......@@ -2189,6 +2189,7 @@ AC_CHECK_FUNCS(\
_spawnvp \
epoll_create \
ffs \
finite \
finitef \
fnmatch \
fork \
......
......@@ -47,6 +47,9 @@
WINE_DEFAULT_DEBUG_CHANNEL(msvcrt);
#ifndef HAVE_FINITE
#define finite(x) isfinite(x)
#endif
#ifndef HAVE_FINITEF
#define finitef(x) isfinite(x)
#endif
......
......@@ -168,6 +168,9 @@
/* Define to 1 if you have the `ffs' function. */
#undef HAVE_FFS
/* Define to 1 if you have the `finite' function. */
#undef HAVE_FINITE
/* Define to 1 if you have the `finitef' function. */
#undef HAVE_FINITEF
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment