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/kontile.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'kon/kontile.h') diff --git a/kon/kontile.h b/kon/kontile.h index 00119b1..f3e04f0 100644 --- a/kon/kontile.h +++ b/kon/kontile.h @@ -29,6 +29,10 @@ #include "konsofren.h" #include "koncollide.h" +#ifdef __cplusplus +extern "C" { +#endif + /*** definition ***/ /* tiles holds columns * rows ids, 0 is empty and n draws tile n - 1 of the sheet, counted left to right then top to bottom */ @@ -67,4 +71,8 @@ int kon_tilemapMove(const kon_tilemap_t *map, kon_box2_t *box, float dx, float d /* cameraX, cameraY is the map pixel shown at the top left of fb */ void kon_drawTilemap(kon_framebuffer_t *fb, const kon_tilemap_t *map, int cameraX, int cameraY); + +#ifdef __cplusplus +} +#endif #endif -- cgit