aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfd-in.h
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2002-01-31 04:42:30 +0000
committerDaniel Jacobowitz <drow@false.org>2002-01-31 04:42:30 +0000
commit4e4770d0c61fb454aa228e4540c48b925b01f29b (patch)
treebee5ca1cdfd8a6ce092160765b23d317bca629a5 /bfd/bfd-in.h
parente1fa50e7dc1038cbe569532ef6e9388a732d826f (diff)
downloadgdb-4e4770d0c61fb454aa228e4540c48b925b01f29b.zip
gdb-4e4770d0c61fb454aa228e4540c48b925b01f29b.tar.gz
gdb-4e4770d0c61fb454aa228e4540c48b925b01f29b.tar.bz2
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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h
index 2f09a88..4b5a370 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. */