mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
_Bool is defined in C99 which we use already. In practice it's 1 byte just like char, so this shouldn't have any impact on the built object. But this patch removes LTO errors when linking C code with C++ code. Indeed, the linker would raise type mismatch because in C++ bool is defined to _Bool whereas in C it would be defined to char.
14 lines
136 B
C
14 lines
136 B
C
#ifndef LIBA_STDBOOL_H
|
|
#define LIBA_STDBOOL_H
|
|
|
|
#ifndef __cplusplus
|
|
|
|
typedef _Bool bool;
|
|
|
|
#define true 1
|
|
#define false 0
|
|
|
|
#endif
|
|
|
|
#endif
|