diff options
author | Daniel Jacobowitz <dan@debian.org> | 2002-02-07 22:28:31 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2002-02-07 22:28:31 +0000 |
commit | 84404e26cf8c4d30acae869076d863d99ac680ae (patch) | |
tree | 645aa7372cfee3f20b555c7adcd2afccd7327c89 /bfd/bfd-in.h | |
parent | 6a367587425a2748de325d4995d0fe0f7945d298 (diff) | |
download | gdb-84404e26cf8c4d30acae869076d863d99ac680ae.tar.gz |
2002-02-07 Daniel Jacobowitz <drow@mvista.com>
* bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has
been included, not drag it in.
* bfd-in2.h: Regenerate.
Diffstat (limited to 'bfd/bfd-in.h')
-rw-r--r-- | bfd/bfd-in.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h index 4b5a370d3f5..bd8a915976b 100644 --- a/bfd/bfd-in.h +++ b/bfd/bfd-in.h @@ -89,12 +89,13 @@ typedef struct _bfd bfd; /* It gets worse if the host also defines a true/false enum... -sts */ /* And even worse if your compiler has built-in boolean types... -law */ /* And even worse if your compiler provides a stdbool.h that conflicts - with these definitions... gcc 2.95 and later do. -drow */ + with these definitions... gcc 2.95 and later do. If so, it must + be included first. -drow */ #if defined (__GNUG__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 6)) #define TRUE_FALSE_ALREADY_DEFINED #else -#if (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)) -#include <stdbool.h> +#if defined (__bool_true_false_are_defined) +/* We have <stdbool.h>. */ #define TRUE_FALSE_ALREADY_DEFINED #endif #endif |