aboutsummaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/system.h')
-rw-r--r--gcc/system.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/system.h b/gcc/system.h
index 6a74946..0d1da2c 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -547,10 +547,18 @@ extern void abort PARAMS ((void));
/* Get libiberty declarations. */
#include "libiberty.h"
+/* Make sure that ONLY_INT_FIELDS has an integral value. */
+#ifdef ONLY_INT_FIELDS
+#undef ONLY_INT_FIELDS
+#define ONLY_INT_FIELDS 1
+#else
+#define ONLY_INT_FIELDS 0
+#endif
+
/* Enumerated bitfields are safe to use unless we've been explictly told
* otherwise or if they are signed. */
-#define USE_ENUM_BITFIELDS __GNUC__ || (!ONLY_INT_FIELDS && ENUM_BTIFIELDS_ARE_UNSIGNED)
+#define USE_ENUM_BITFIELDS (__GNUC__ || (!ONLY_INT_FIELDS && ENUM_BITFIELDS_ARE_UNSIGNED))
#if USE_ENUM_BITFIELDS
#define ENUM_BITFIELD(TYPE) enum TYPE