Only provide a typedef for bool if it is not defined.

This commit is contained in:
Nick Clifton 2002-02-06 20:09:18 +00:00
parent 1900040cf3
commit 095778a05e
2 changed files with 8 additions and 1 deletions

View file

@ -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.

View file

@ -120,8 +120,10 @@ 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
# ifndef bool
typedef _bool bool;
# endif
# endif
# define true _true
# define false _false
#endif