support for some old compilers
This commit is contained in:
parent
cb3bad5d70
commit
3b22cf6078
14
native/standalone/stdbool.h
Normal file
14
native/standalone/stdbool.h
Normal 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
|
10
native/standalone/stdnoreturn.h
Normal file
10
native/standalone/stdnoreturn.h
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#ifndef _ACC_STD_NORETURN_H
|
||||||
|
#define _ACC_STD_NORETURN_H
|
||||||
|
|
||||||
|
#ifndef __cplusplus
|
||||||
|
|
||||||
|
#define noreturn _Noreturn
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
@ -13,6 +13,7 @@ target("build")
|
|||||||
add_files("src/**.c")
|
add_files("src/**.c")
|
||||||
add_files("main.c")
|
add_files("main.c")
|
||||||
add_includedirs("include/")
|
add_includedirs("include/")
|
||||||
|
add_includedirs("native/standalone/")
|
||||||
if is_mode("release") then
|
if is_mode("release") then
|
||||||
set_strip("all")
|
set_strip("all")
|
||||||
set_optimize("faster")
|
set_optimize("faster")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user