summaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-18 17:35:58 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-18 17:35:58 +0000
commitb39543663166f6d9eabb27b9119cc3f301f487f9 (patch)
treef25ad3759703df13e0d6b40b621ea7e6d2e1dd18 /gcc/system.h
parent68878c92d58709d9a1fa3e95d80a791a79450d75 (diff)
downloadgcc-b39543663166f6d9eabb27b9119cc3f301f487f9.tar.gz
* cpphash.h: Use HAVE_DESIGNATED_INITIALIZERS.
(_cpp_trigraph_map): Declaration moved from cpplex.c * cppinit.c: Define _cpp_trigraph_map. Use UCHAR_MAX + 1 instead of 256. Use consistent test for designated initializers. (cpp_init): Initialize trigraph_map. (initialize_standard_includes, parse_option): Use memcmp instead of strncmp. * cpplex.c (init_trigraph_map): Remove. (trigraph_ok, trigraph_replace, lex_line): Refer to _cpp_trigraph_map. * cpplib.c (str_match, WARNING, ERROR, ICE): Delete. (do_unassert): Remove unused "next" local. * system.h (HAVE_DESIGNATED_INITIALIZERS): New prototype. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35789 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/system.h')
-rw-r--r--gcc/system.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/system.h b/gcc/system.h
index 37cc727d3ab..066c80561ba 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -464,6 +464,10 @@ extern int setrlimit PARAMS ((int, const struct rlimit *));
extern void abort PARAMS ((void));
#endif
+/* 1 if we have C99 designated initializers. */
+#define HAVE_DESIGNATED_INITIALIZERS \
+ ((GCC_VERSION >= 2007) || (__STDC_VERSION__ >= 199901L))
+
/* Define a STRINGIFY macro that's right for ANSI or traditional C.
Note: if the argument passed to STRINGIFY is itself a macro, eg
#define foo bar, STRINGIFY(foo) will produce "foo", not "bar".