From 8719393994d0842dd0d9173f8bdd99d3f4bff7cf Mon Sep 17 00:00:00 2001 From: Michael Chastain Date: Wed, 20 Aug 2003 17:39:18 +0000 Subject: 2003-08-20 Michael Chastain * defs.h (ENUM_BITFIELD): New macro. * symtab.h (ENUM_BITFIELD): Use it. (BYTE_BITFIELD): Remove old macro, which was already disabled. --- gdb/defs.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gdb/defs.h') diff --git a/gdb/defs.h b/gdb/defs.h index 59094972594..778f5579e53 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; -- cgit v1.2.1