4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-28 03:27:46 +08:00

2003-07-03 Shaun Jackman <sjackman@pathwayconnect.com>

* libc/include/stdbool.h: New header file defined by C99.
This commit is contained in:
Jeff Johnston 2003-07-03 17:11:08 +00:00
parent 0def41361b
commit 0a447ef392
2 changed files with 26 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2003-07-03 Shaun Jackman <sjackman@pathwayconnect.com>
* libc/include/stdbool.h: New header file defined by C99.
2003-07-02 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/types.h (int8_t): Make signed.

View File

@ -0,0 +1,22 @@
#ifndef _STDBOOL_H_
#define _STDBOOL_H_
#ifndef __cplusplus
#undef bool
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
#define bool _Bool
#else
#define bool unsigned char
#endif
#undef false
#define false 0
#undef true
#define true 1
#define __bool_true_false_are_defined 1
#endif /* !__cplusplus */
#endif /* _STDBOOL_H_ */