From 095778a05ed02821c9c55e443c1ea0d2ead3bac0 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 6 Feb 2002 20:09:18 +0000 Subject: Only provide a typedef for bool if it is not defined. --- gdb/ChangeLog | 5 +++++ gdb/rdi-share/host.h | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'gdb') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 993cb93..fd70107 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-02-06 Nick Clifton + + * rdi-share/host.h: Only provide a typedef for bool if it is not + defined. + 2002-02-04 Michael Snyder * 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 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 -- cgit v1.1