]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
fpu.c: Add _GNU_SOURCE definition.
authorFrancois-Xavier Coudert <coudert@clipper.ens.fr>
Sun, 23 Oct 2005 20:06:08 +0000 (22:06 +0200)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sun, 23 Oct 2005 20:06:08 +0000 (20:06 +0000)
* runtime/fpu.c: Add _GNU_SOURCE definition.
* config/fpu-glibc.h: Remove __USE_GNU definition.

From-SVN: r105822

libgfortran/ChangeLog
libgfortran/config/fpu-glibc.h
libgfortran/runtime/fpu.c

index 3666964d6c98e6db8527be3d188e5f9a234ff4b5..1088c76933e2b0c4308acf94f0bff0662bc84e43 100644 (file)
@@ -1,3 +1,8 @@
+2005-10-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
+
+       * runtime/fpu.c: Add _GNU_SOURCE definition.
+       * config/fpu-glibc.h: Remove __USE_GNU definition.
+
 2005-10-23  Paul Thomas  <pault@gcc.gnu.org>
 
        PR fortran/24384
index 0a6c9df1cc1ce34003ee21145e1edb88eddf809d..389f9054a56229b90ed1b87a08f428b0840d2a07 100644 (file)
@@ -33,7 +33,6 @@ Boston, MA 02110-1301, USA.  */
    feenableexcept function in fenv.h to set individual exceptions
    (there's nothing to do that in C99).  */
 
-#define __USE_GNU
 #ifdef HAVE_FENV_H
 #include <fenv.h>
 #endif
index f81a3b05a421e83f6439409365692779a624c9f1..4a2c1f1d431ff17d0f6f47f91d958a5f3b3cf0ea 100644 (file)
@@ -1,3 +1,8 @@
+/* This is needed for fpu-glibc.h, before all other includes */
+#ifdef HAVE_FENV_H
+#define _GNU_SOURCE
+#endif
+
 #include "libgfortran.h"
 
 /* We include the platform-dependent code.  */