2011-08-08 Tristan Gingold <gingold@adacore.com>
[deliverable/binutils-gdb.git] / include / ansidecl.h
index 8b76647426bf9641c0b0c969efa23d2886831b8c..c39ce2f5d709ed3c5dc92f01bb0a5e5f7e996617 100644 (file)
@@ -416,6 +416,15 @@ So instead we use the macro below and test it against specific values.  */
 #define EXPORTED_CONST const
 #endif
 
+/* Be conservative and only use enum bitfields with GCC.
+   FIXME: provide a complete autoconf test for buggy enum bitfields.  */
+
+#if (GCC_VERSION > 2000)
+#define ENUM_BITFIELD(TYPE) __extension__ enum TYPE
+#else
+#define ENUM_BITFIELD(TYPE) unsigned int
+#endif
+
 #ifdef __cplusplus
 }
 #endif
This page took 0.022401 seconds and 4 git commands to generate.