mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[liba] Update the bool type to use _Bool
_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.
This commit is contained in:
committed by
EmilieNumworks
parent
d0010c88dc
commit
9db16997af
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#ifndef __cplusplus
|
#ifndef __cplusplus
|
||||||
|
|
||||||
typedef char bool;
|
typedef _Bool bool;
|
||||||
|
|
||||||
#define true 1
|
#define true 1
|
||||||
#define false 0
|
#define false 0
|
||||||
|
|||||||
Reference in New Issue
Block a user