From: Jason Merrill Date: Wed, 23 May 2018 17:13:30 +0000 (-0400) Subject: * system.h: #include earlier. X-Git-Tag: basepoints/gcc-10~6567 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6b29221604547ab14143081b45d955dd7a61a26;p=thirdparty%2Fgcc.git * system.h: #include earlier. From-SVN: r260620 --- diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 88cbe1b14c79..682903aa837b 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,7 @@ +2018-05-23 Jason Merrill + + * system.h: #include earlier. + 2018-05-17 Jason Merrill * line-map.c (linemap_init): Use placement new. diff --git a/libcpp/system.h b/libcpp/system.h index 76420e16cfbb..3fde817cb832 100644 --- a/libcpp/system.h +++ b/libcpp/system.h @@ -37,6 +37,10 @@ along with GCC; see the file COPYING3. If not see #include +#ifdef __cplusplus +#include +#endif + /* Define a generic NULL if one hasn't already been defined. */ #ifndef NULL #define NULL 0 @@ -438,10 +442,6 @@ extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN; /* Some compilers do not allow the use of unsigned char in bitfields. */ #define BOOL_BITFIELD unsigned int -#ifdef __cplusplus -#include -#endif - /* Poison identifiers we do not want to use. */ #if (GCC_VERSION >= 3000) #undef calloc