libport: Fix the detection of isfinite().

This commit is contained in:
Francois Gouget 2013-12-05 11:31:20 +01:00 committed by Alexandre Julliard
parent 1577fb6c3f
commit 6f22057c21
3 changed files with 4 additions and 2 deletions

1
configure vendored
View File

@ -15771,6 +15771,7 @@ if ${ac_cv_have_isfinite+:} false; then :
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#define _GNU_SOURCE
#include <math.h>
int
main ()

View File

@ -2534,7 +2534,8 @@ dnl Check for isfinite
ac_save_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_CACHE_CHECK([for isfinite], ac_cv_have_isfinite,
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]], [[float f = 0.0; return isfinite(f)]])],[ac_cv_have_isfinite="yes"],[ac_cv_have_isfinite="no"]))
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define _GNU_SOURCE
#include <math.h>]], [[float f = 0.0; return isfinite(f)]])],[ac_cv_have_isfinite="yes"],[ac_cv_have_isfinite="no"]))
if test "$ac_cv_have_isfinite" = "yes"
then
AC_DEFINE(HAVE_ISFINITE, 1, [Define to 1 if you have the `isfinite' function.])

View File

@ -30,7 +30,7 @@
#endif
#ifndef _GNU_SOURCE
# define _GNU_SOURCE /* for pread/pwrite */
# define _GNU_SOURCE /* for pread/pwrite, isfinite */
#endif
#include <fcntl.h>
#include <math.h>