Message ID | 54905811.50502@ssi-schaefer.com |
---|---|
State | New |
Headers | show |
On Tue, Dec 16, 2014 at 5:04 PM, Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com> wrote: > Recent commit 218765 adding sreal::to_double() breaks on AIX due to math.h > being included before _LARGE_FILES and __STDC_FORMAT_MACROS being defined > later in config.h and system.h, respectively. sreal.c shouldn't include math.h, if really really really needed math.h needs to be included from system.h at the appropriate place. Richard, > 2014-12-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com> > > Both config.h and system.h define ABI/API macros for system headers. > * sreal.c: Include math.h later. > > Thanks! > /haubi/
Index: gcc/sreal.c =================================================================== --- gcc/sreal.c (revision 218780) +++ gcc/sreal.c (working copy) @@ -47,9 +47,9 @@ sig == 0 && exp == -SREAL_MAX_EXP */ -#include <math.h> #include "config.h" #include "system.h" +#include <math.h> #include "coretypes.h" #include "sreal.h"