cppmacro.c (STDC_0_IN_SYSTEM_HEADERS): Define to 0 if undefined.
authorNeil Booth <neil@gcc.gnu.org>
Tue, 31 Oct 2000 19:59:44 +0000 (19:59 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Tue, 31 Oct 2000 19:59:44 +0000 (19:59 +0000)
* 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

gcc/config/i386/sol2.h
gcc/config/rs6000/sol2.h
gcc/config/sparc/sol2.h
gcc/cppmacro.c

index 0c61d48fc71421b9870f3d4a63ee8e11da5dafe2..9ed50f7f4685391a85bd47eef89a3f4410cc7a0c 100644 (file)
@@ -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 "."
index 344f3ae0f701e7b383ceb011825847f0b0883332..00ccd4978ec0cc7ebfc45919dd226c3f270e8b26 100644 (file)
@@ -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
index 2b3815294859b2d9a5c546774926c7e1500dd7f2..3872295ec7251a90c1fabc45036c3920ee0ada24 100644 (file)
@@ -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"
index 484ce037a55bf7e3241cfbd851d4603d1ad398fb..d4bf337db03cd460e4acb34db308e539aa05b3e0 100644 (file)
@@ -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;