279,8 → 279,15 |
# endif |
#endif |
|
/* Similarly to ARG_UNUSED below. Prior to GCC 3.4, the C++ frontend |
couldn't parse attributes placed after the identifier name, and now |
the entire compiler is built with C++. */ |
#ifndef ATTRIBUTE_UNUSED |
#if GCC_VERSION >= 3004 |
#define ATTRIBUTE_UNUSED __attribute__ ((__unused__)) |
#else |
#define ATTRIBUTE_UNUSED |
#endif |
#endif /* ATTRIBUTE_UNUSED */ |
|
/* Before GCC 3.4, the C++ frontend couldn't parse attributes placed after the |
416,7 → 423,18 |
#define EXPORTED_CONST const |
#endif |
|
/* Be conservative and only use enum bitfields with C++ or GCC. |
FIXME: provide a complete autoconf test for buggy enum bitfields. */ |
|
#ifdef __cplusplus |
#define ENUM_BITFIELD(TYPE) enum TYPE |
#elif (GCC_VERSION > 2000) |
#define ENUM_BITFIELD(TYPE) __extension__ enum TYPE |
#else |
#define ENUM_BITFIELD(TYPE) unsigned int |
#endif |
|
#ifdef __cplusplus |
} |
#endif |
|