support for some old compilers

This commit is contained in:
方而静 2023-06-25 13:49:26 +08:00
parent cb3bad5d70
commit 3b22cf6078
3 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,14 @@
#ifndef _ACC_STDBOOL_H
#define _ACC_STDBOOL_H
#ifndef __cplusplus
#define bool _Bool
#define true 1
#define false 0
#endif
#define __bool_true_false_are_defined 1
#endif

View File

@ -0,0 +1,10 @@
#ifndef _ACC_STD_NORETURN_H
#define _ACC_STD_NORETURN_H
#ifndef __cplusplus
#define noreturn _Noreturn
#endif
#endif

View File

@ -13,6 +13,7 @@ target("build")
add_files("src/**.c")
add_files("main.c")
add_includedirs("include/")
add_includedirs("native/standalone/")
if is_mode("release") then
set_strip("all")
set_optimize("faster")