diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-04-25 22:28:53 +0400 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-04-25 22:28:53 +0400 |
commit | 8b6597c887a9aa08dd8a8312aaa34e5eb5d010cd (patch) | |
tree | f5c71266f141e69910f7e09f59c40f3184fbfe9d /include/ansidecl.h | |
parent | 705495017587b03511eea86838e3f0672c4e71c2 (diff) |
gdb/
* defs.h (ENUM_BITFIELD): Remove.
include/
* bfdlink.h (ENUM_BITFIELD): Remove.
merge from gcc:
include/
* ansidecl.h (ENUM_BITFIELD): New, from gcc/system.h.
Diffstat (limited to 'include/ansidecl.h')
-rw-r--r-- | include/ansidecl.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/ansidecl.h b/include/ansidecl.h index 8b7664742..c39ce2f5d 100644 --- a/include/ansidecl.h +++ b/include/ansidecl.h @@ -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 |