aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorMichael Chastain <mec@google.com>2003-08-20 17:39:18 +0000
committerMichael Chastain <mec@google.com>2003-08-20 17:39:18 +0000
commit8719393994d0842dd0d9173f8bdd99d3f4bff7cf (patch)
tree2449517288324f1a7c695905216a8f2c44792318 /gdb/defs.h
parent741a7751ad8b8b82b36c2f9b337ba36e6578ccca (diff)
downloadgdb-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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index 5909497..778f557 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -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;