diff options
author | Michael Chastain <mec@google.com> | 2003-08-20 17:39:18 +0000 |
---|---|---|
committer | Michael Chastain <mec@google.com> | 2003-08-20 17:39:18 +0000 |
commit | 8719393994d0842dd0d9173f8bdd99d3f4bff7cf (patch) | |
tree | 2449517288324f1a7c695905216a8f2c44792318 /gdb/defs.h | |
parent | 741a7751ad8b8b82b36c2f9b337ba36e6578ccca (diff) | |
download | gdb-8719393994d0842dd0d9173f8bdd99d3f4bff7cf.zip gdb-8719393994d0842dd0d9173f8bdd99d3f4bff7cf.tar.gz gdb-8719393994d0842dd0d9173f8bdd99d3f4bff7cf.tar.bz2 |
2003-08-20 Michael Chastain <mec@shout.net>
* defs.h (ENUM_BITFIELD): New macro.
* symtab.h (ENUM_BITFIELD): Use it.
(BYTE_BITFIELD): Remove old macro, which was already disabled.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r-- | gdb/defs.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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; |