diff options
| -rw-r--r-- | libgfortran/ChangeLog | 5 | ||||
| -rw-r--r-- | libgfortran/config/fpu-glibc.h | 1 | ||||
| -rw-r--r-- | libgfortran/runtime/fpu.c | 5 |
3 files changed, 10 insertions, 1 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 3666964..1088c76 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -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 diff --git a/libgfortran/config/fpu-glibc.h b/libgfortran/config/fpu-glibc.h index 0a6c9df1..389f905 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 <fenv.h> #endif 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. */ |
