Francois Gouget : libport: Fix the detection of isfinite().
Alexandre Julliard
julliard at winehq.org
Thu Dec 5 12:49:16 CST 2013
Module: wine
Branch: master
Commit: 6f22057c21a19dc7f797307b90b084550ea0a263
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6f22057c21a19dc7f797307b90b084550ea0a263
Author: Francois Gouget <fgouget at free.fr>
Date: Thu Dec 5 11:31:20 2013 +0100
libport: Fix the detection of isfinite().
---
configure | 1 +
configure.ac | 3 ++-
include/wine/port.h | 2 +-
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 23eeb92..7ad174c 100755
--- a/configure
+++ b/configure
@@ -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 ()
diff --git a/configure.ac b/configure.ac
index d091370..0124652 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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.])
diff --git a/include/wine/port.h b/include/wine/port.h
index 406f190..3548a44 100644
--- a/include/wine/port.h
+++ b/include/wine/port.h
@@ -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>
More information about the wine-cvs
mailing list