From 17d6e514a126393563bc7d44c44842bbdd13cd87 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Coudert Date: Sun, 23 Oct 2005 22:06:08 +0200 Subject: [PATCH] fpu.c: Add _GNU_SOURCE definition. * runtime/fpu.c: Add _GNU_SOURCE definition. * config/fpu-glibc.h: Remove __USE_GNU definition. From-SVN: r105822 --- libgfortran/ChangeLog | 5 +++++ libgfortran/config/fpu-glibc.h | 1 - libgfortran/runtime/fpu.c | 5 +++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 3666964d6c9..1088c76933e 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,8 @@ +2005-10-23 Francois-Xavier Coudert + + * runtime/fpu.c: Add _GNU_SOURCE definition. + * config/fpu-glibc.h: Remove __USE_GNU definition. + 2005-10-23 Paul Thomas PR fortran/24384 diff --git a/libgfortran/config/fpu-glibc.h b/libgfortran/config/fpu-glibc.h index 0a6c9df1cc1..389f9054a56 100644 --- a/libgfortran/config/fpu-glibc.h +++ b/libgfortran/config/fpu-glibc.h @@ -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 #endif diff --git a/libgfortran/runtime/fpu.c b/libgfortran/runtime/fpu.c index f81a3b05a42..4a2c1f1d431 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. */