From: Neil Booth Date: Tue, 31 Oct 2000 19:59:44 +0000 (+0000) Subject: cppmacro.c (STDC_0_IN_SYSTEM_HEADERS): Define to 0 if undefined. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=510fbf869c478eae5d0931f2987ba37516ce75e7;p=gcc.git cppmacro.c (STDC_0_IN_SYSTEM_HEADERS): Define to 0 if undefined. * cppmacro.c (STDC_0_IN_SYSTEM_HEADERS): Define to 0 if undefined. Remove #ifdef check. * config/i386/sol2.h, config/rs6000/sol2.h, config/sparc/sol2.h: Define STDC_0_IN_SYSTEM_HEADERS to 1. From-SVN: r37163 --- diff --git a/gcc/config/i386/sol2.h b/gcc/config/i386/sol2.h index 0c61d48fc71..9ed50f7f468 100644 --- a/gcc/config/i386/sol2.h +++ b/gcc/config/i386/sol2.h @@ -127,7 +127,7 @@ Boston, MA 02111-1307, USA. */ || (CHAR) == 'h' \ || (CHAR) == 'z') -#define STDC_0_IN_SYSTEM_HEADERS +#define STDC_0_IN_SYSTEM_HEADERS 1 #undef LOCAL_LABEL_PREFIX #define LOCAL_LABEL_PREFIX "." diff --git a/gcc/config/rs6000/sol2.h b/gcc/config/rs6000/sol2.h index 344f3ae0f70..00ccd4978ec 100644 --- a/gcc/config/rs6000/sol2.h +++ b/gcc/config/rs6000/sol2.h @@ -171,4 +171,4 @@ while (0) #undef MULTILIB_DEFAULTS #define MULTILIB_DEFAULTS { "mlittle", "mcall-solaris" } -#define STDC_0_IN_SYSTEM_HEADERS +#define STDC_0_IN_SYSTEM_HEADERS 1 diff --git a/gcc/config/sparc/sol2.h b/gcc/config/sparc/sol2.h index 2b381529485..3872295ec72 100644 --- a/gcc/config/sparc/sol2.h +++ b/gcc/config/sparc/sol2.h @@ -185,7 +185,7 @@ Boston, MA 02111-1307, USA. */ /* But indicate that it isn't supported by the hardware. */ #define WIDEST_HARDWARE_FP_SIZE 64 -#define STDC_0_IN_SYSTEM_HEADERS +#define STDC_0_IN_SYSTEM_HEADERS 1 #define MULDI3_LIBCALL "__mul64" #define DIVDI3_LIBCALL "__div64" diff --git a/gcc/cppmacro.c b/gcc/cppmacro.c index 484ce037a55..d4bf337db03 100644 --- a/gcc/cppmacro.c +++ b/gcc/cppmacro.c @@ -29,6 +29,10 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "cpplib.h" #include "cpphash.h" +#ifndef STDC_0_IN_SYSTEM_HEADERS +#define STDC_0_IN_SYSTEM_HEADERS 0 /* Boolean macro. */ +#endif + struct cpp_macro { cpp_hashnode **params; /* Parameters, if any. */ @@ -189,11 +193,9 @@ builtin_macro (pfile, token) { int stdc = 1; -#ifdef STDC_0_IN_SYSTEM_HEADERS - if (CPP_IN_SYSTEM_HEADER (pfile) + if (STDC_0_IN_SYSTEM_HEADERS && CPP_IN_SYSTEM_HEADER (pfile) && pfile->spec_nodes.n__STRICT_ANSI__->type == NT_VOID) stdc = 0; -#endif make_number_token (pfile, token, stdc); } break;