Make fatcosmocc good enough to build ncurses 6.4

This commit is contained in:
Justine Tunney 2023-08-12 22:30:05 -07:00
parent 399d14aadf
commit 3f2f0e3a74
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
20 changed files with 295 additions and 139 deletions

16
libc/stdbool.h Normal file
View file

@ -0,0 +1,16 @@
#ifndef COSMOPOLITAN_LIBC_STDBOOL_H_
#define COSMOPOLITAN_LIBC_STDBOOL_H_
#ifndef __cplusplus
#if __STDC_VERSION__ + 0 >= 201112
#define bool _Bool
#else
#define bool unsigned char
#endif
#define true 1
#define false 0
#endif /* __cplusplus */
#define __bool_true_false_are_defined
#endif /* COSMOPOLITAN_LIBC_STDBOOL_H_ */