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: Martin Storsjo <martin@martin.st>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Martin Storsjo 2020-08-14 14:33:24 +03:00 committed by Alexandre Julliard
parent 11bb6deb08
commit 342c5da7c1
4 changed files with 8 additions and 0 deletions

1
configure vendored
View File

@ -18037,6 +18037,7 @@ for ac_func in \
_spawnvp \
epoll_create \
ffs \
finite \
finitef \
fnmatch \
fork \

View File

@ -2189,6 +2189,7 @@ AC_CHECK_FUNCS(\
_spawnvp \
epoll_create \
ffs \
finite \
finitef \
fnmatch \
fork \

View File

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

View File

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