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:
parent
0def41361b
commit
0a447ef392
@ -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.
|
||||
|
22
newlib/libc/include/stdbool.h
Normal file
22
newlib/libc/include/stdbool.h
Normal 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_ */
|
Loading…
x
Reference in New Issue
Block a user