2003-08-20 Michael Chastain <mec@shout.net>
[deliverable/binutils-gdb.git] / gdb / defs.h
index 590949725947228314f850a03aaa1336450b13d5..778f5579e5346603b503e45b4f787b6861ca9ee9 100644 (file)
@@ -285,6 +285,15 @@ struct cleanup
 #endif
 #endif
 
+/* Be conservative and use enum bitfields only with GCC.
+   This is copied from gcc 3.3.1, system.h.  */
+
+#if defined(__GNUC__) && (__GNUC__ >= 2)
+#define ENUM_BITFIELD(TYPE) enum TYPE
+#else
+#define ENUM_BITFIELD(TYPE) unsigned int
+#endif
+
 /* Needed for various prototypes */
 
 struct symtab;
This page took 0.031507 seconds and 4 git commands to generate.