From: Francois-Xavier Coudert Date: Sun, 23 Oct 2005 20:06:08 +0000 (+0200) Subject: fpu.c: Add _GNU_SOURCE definition. X-Git-Tag: misc/cutover-cvs2svn~41 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=17d6e514a126393563bc7d44c44842bbdd13cd87;p=thirdparty%2Fgcc.git fpu.c: Add _GNU_SOURCE definition. * runtime/fpu.c: Add _GNU_SOURCE definition. * config/fpu-glibc.h: Remove __USE_GNU definition. From-SVN: r105822 --- diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 3666964d6c98..1088c76933e2 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 0a6c9df1cc1c..389f9054a562 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 f81a3b05a421..4a2c1f1d431f 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. */