From 4942fed528cd2598041305ca7dbfaaf53c617ce2 Mon Sep 17 00:00:00 2001 From: Chukobyte Date: Sat, 2 Nov 2024 17:18:28 -0400 Subject: [PATCH] Making time and window headers usable from c++. --- seika/rendering/window.h | 8 ++++++++ seika/time.h | 8 ++++++++ seika/version_info.h | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/seika/rendering/window.h b/seika/rendering/window.h index 5f24a94..d367100 100644 --- a/seika/rendering/window.h +++ b/seika/rendering/window.h @@ -2,6 +2,10 @@ #if SKA_RENDERING +#ifdef __cplusplus +extern "C" { +#endif + #include "seika/defines.h" struct SkaColor; @@ -20,5 +24,9 @@ void ska_window_finalize(); void ska_window_render(const struct SkaColor* backgroundColor); bool ska_window_set_vsync(bool enabled); +#ifdef __cplusplus +} +#endif + #endif // #if SKA_RENDERING diff --git a/seika/time.h b/seika/time.h index 197641f..13a1976 100644 --- a/seika/time.h +++ b/seika/time.h @@ -2,9 +2,17 @@ #if SKA_INPUT || SKA_RENDERING +#ifdef __cplusplus +extern "C" { +#endif + #include "seika/defines.h" uint32 ska_get_ticks(); void ska_delay(uint32 milliseconds); +#ifdef __cplusplus +} +#endif + #endif // #if SKA_INPUT || SKA_RENDERING diff --git a/seika/version_info.h b/seika/version_info.h index cf49e6e..cdfe501 100644 --- a/seika/version_info.h +++ b/seika/version_info.h @@ -4,6 +4,6 @@ #define SKA_VERSION_MAJOR 0 #define SKA_VERSION_MINOR 2 -#define SKA_VERSION_PATCH 2 +#define SKA_VERSION_PATCH 3 #define SKA_VERSION (SKA_MACRO_TO_STRING(SKA_VERSION_MAJOR) "." SKA_MACRO_TO_STRING(SKA_VERSION_MINOR) "." SKA_MACRO_TO_STRING(SKA_VERSION_PATCH))