tuxanci2-engine
Game engine for tuxanci2
Log | Files | Refs | README | LICENSE
commit f498ad6945a0c1338c64716eeea075a2ef054d37
parent 3d85c968743fbdddb4b7d24326501bb858300c39
Author: Connor Thomson <connor@gnufault.org>
Date:   Sun, 18 Oct 2026 16:27:32 -0700

Make it so the headers work with C++

Diffstat:
Minclude/ta_api.h | 8++++----
Minclude/ta_types.h | 4++++
2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/include/ta_api.h b/include/ta_api.h @@ -1,15 +1,15 @@ #ifndef TA_API_H #define TA_API_H +#ifdef __cplusplus +extern "C" { +#endif + #include "ta_config.h" #include "ta_types.h" #include "ta_fb.h" #include "ta_keyboard.h" -#ifdef __cplusplus -extern "C" { -#endif - // Must be called before ta_update() void ta_main_init(void); diff --git a/include/ta_types.h b/include/ta_types.h @@ -21,7 +21,11 @@ typedef long long ta_int64; #error "TA_BITS is not set!" #endif +#ifdef __cplusplus +typedef bool ta_bool; +#else typedef _Bool ta_bool; +#endif #define ta_true 1 #define ta_false 0