From d3432fcc288a53dff9eb219c8857ca48c5981323 Mon Sep 17 00:00:00 2001 From: KonAki Date: Tue, 13 Oct 2026 10:28:17 +0800 Subject: headers: extern C guards and C++ safe vector and rect constructors --- kon/konstage.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'kon/konstage.h') diff --git a/kon/konstage.h b/kon/konstage.h index f19c5f0..9ef9c96 100644 --- a/kon/konstage.h +++ b/kon/konstage.h @@ -29,6 +29,10 @@ #include "konsofren.h" #include "kon2d.h" +#ifdef __cplusplus +extern "C" { +#endif + /*** definition ***/ /* the picture behind everything. none leaves the framebuffer as it is, so a map or a scene drawn first shows through */ @@ -146,4 +150,8 @@ int kon_stageBusy(const kon_stage_t *stage); void kon_stageDrawBackground(const kon_stage_t *stage, kon_framebuffer_t *fb); void kon_stageDraw(const kon_stage_t *stage, kon_framebuffer_t *fb, kon_layer_t layer); + +#ifdef __cplusplus +} +#endif #endif -- cgit