diff options
author | Daniel Jacobowitz <dan@debian.org> | 2002-01-31 04:42:30 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2002-01-31 04:42:30 +0000 |
commit | 0f130fb5868f9016f9a87e3c9139f08d09f09692 (patch) | |
tree | 85cdd5aef4255381a3c57f6eec392e5179e144f6 /bfd/bfd-in.h | |
parent | 174a503468cee0e41ed48ceefb4915a1f0716423 (diff) | |
download | gdb-0f130fb5868f9016f9a87e3c9139f08d09f09692.tar.gz |
2002-01-30 Daniel Jacobowitz <drow@mvista.com>
* bfd-in.h: Include <stdbool.h> if it is available.
* bfd-in2.h: Regenerated.
Diffstat (limited to 'bfd/bfd-in.h')
-rw-r--r-- | bfd/bfd-in.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h index 2f09a88ebe0..4b5a370d3f5 100644 --- a/bfd/bfd-in.h +++ b/bfd/bfd-in.h @@ -88,8 +88,15 @@ typedef struct _bfd bfd; /* Yup, SVR4 has a "typedef enum boolean" in <sys/types.h> -fnf */ /* 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 */ #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> +#define TRUE_FALSE_ALREADY_DEFINED +#endif #endif #ifdef MPW /* Pre-emptive strike - get the file with the enum. */ |