aboutsummaryrefslogtreecommitdiff
path: root/gdb/rdi-share
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
commit095778a05ed02821c9c55e443c1ea0d2ead3bac0 (patch)
tree2b27621b5707b00db845e1330651c32b559c9653 /gdb/rdi-share
parent1900040cf3086ac919a5088dca1ad5de52f33693 (diff)
downloadgdb-095778a05ed02821c9c55e443c1ea0d2ead3bac0.zip
gdb-095778a05ed02821c9c55e443c1ea0d2ead3bac0.tar.gz
gdb-095778a05ed02821c9c55e443c1ea0d2ead3bac0.tar.bz2
Only provide a typedef for bool if it is not defined.
Diffstat (limited to 'gdb/rdi-share')
-rw-r--r--gdb/rdi-share/host.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/rdi-share/host.h b/gdb/rdi-share/host.h
index 53b6568..2fdbf5f 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