summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-02-06 20:09:18 +0000
committerNick Clifton <nickc@redhat.com>2002-02-06 20:09:18 +0000
commit94454c961210907bf2d81a887dba5f78ff48c386 (patch)
tree75258604ea013c9920bfc7befd9dad26dfa5d3b5 /gdb
parenta873a88a90fe6fb75283634b0f16e18b835fbdf0 (diff)
downloadgdb-94454c961210907bf2d81a887dba5f78ff48c386.tar.gz
Only provide a typedef for bool if it is not defined.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/rdi-share/host.h4
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 993cb93d294..fd70107d797 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
+
+ * rdi-share/host.h: Only provide a typedef for bool if it is not
+ defined.
+
2002-02-04 Michael Snyder <msnyder@redhat.com>
* breakpoint.h (enum bptype): Add new overlay event bp type.
diff --git a/gdb/rdi-share/host.h b/gdb/rdi-share/host.h
index 53b65681b8a..2fdbf5f4541 100644
--- a/gdb/rdi-share/host.h
+++ b/gdb/rdi-share/host.h
@@ -120,7 +120,9 @@ typedef unsigned char unsigned8;
# if defined(_MFC_VER) || defined(__CC_NORCROFT) /* When using MS Visual C/C++ v4.2 */
# define bool _bool /* avoids "'bool' is reserved word" warning */
# else
- typedef _bool bool;
+# ifndef bool
+ typedef _bool bool;
+# endif
# endif
# define true _true
# define false _false