mirror of
https://github.com/zeldaret/mm.git
synced 2024-11-26 22:30:58 +00:00
5acaec4486
* Fix ultratypes types * Add back size_t and NULL * Callocs * Callocs pt 2 * bool * STDC version checks
22 lines
362 B
C
22 lines
362 B
C
#ifndef LIBC_STDBOOL_H
|
|
#define LIBC_STDBOOL_H
|
|
|
|
#define __bool_true_false_are_defined 1
|
|
|
|
#ifndef __cplusplus
|
|
|
|
#if (__STDC_VERSION__ >= 202311L)
|
|
// bool is a type in C23, do not define it
|
|
#elif (__STDC_VERSION__ >= 199901L)
|
|
#define bool _Bool
|
|
#else
|
|
#define bool int
|
|
#endif
|
|
|
|
#define false 0
|
|
#define true 1
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
#endif /* STDBOOL */
|