aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/runtime/fpu.c
diff options
context:
space:
mode:
authorFrancois-Xavier Coudert <coudert@clipper.ens.fr>2005-10-23 22:06:08 +0200
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>2005-10-23 20:06:08 +0000
commit17d6e514a126393563bc7d44c44842bbdd13cd87 (patch)
treefb9ac956aecb346dcd0326968f59922a3b56c45c /libgfortran/runtime/fpu.c
parentfa8697330dcfe9b7170f9abc7b7eae352c050e26 (diff)
downloadgcc-17d6e514a126393563bc7d44c44842bbdd13cd87.zip
gcc-17d6e514a126393563bc7d44c44842bbdd13cd87.tar.gz
gcc-17d6e514a126393563bc7d44c44842bbdd13cd87.tar.bz2
fpu.c: Add _GNU_SOURCE definition.
* runtime/fpu.c: Add _GNU_SOURCE definition. * config/fpu-glibc.h: Remove __USE_GNU definition. From-SVN: r105822
Diffstat (limited to 'libgfortran/runtime/fpu.c')
-rw-r--r--libgfortran/runtime/fpu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libgfortran/runtime/fpu.c b/libgfortran/runtime/fpu.c
index f81a3b0..4a2c1f1 100644
--- a/libgfortran/runtime/fpu.c
+++ b/libgfortran/runtime/fpu.c
@@ -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. */