summaryrefslogtreecommitdiff
path: root/kon/kon2d.h
diff options
context:
space:
mode:
authorKonAki <konaki@anokonaki.org>2026-10-13 10:28:17 +0800
committerKonAki <konaki@anokonaki.org>2026-10-13 10:28:17 +0800
commitd3432fcc288a53dff9eb219c8857ca48c5981323 (patch)
treefba5cc730c91d2c674efe6d71dd20e9d6bf7d0d8 /kon/kon2d.h
parenta2dc5ca4c659e2d0a9527cd0910bc76b65e6d09f (diff)
headers: extern C guards and C++ safe vector and rect constructors
Diffstat (limited to 'kon/kon2d.h')
-rw-r--r--kon/kon2d.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/kon/kon2d.h b/kon/kon2d.h
index badaed0..7fed1b2 100644
--- a/kon/kon2d.h
+++ b/kon/kon2d.h
@@ -28,6 +28,10 @@
#include "konsofren.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*** camera ***/
/* x, y is the map pixel at the top left of the view. bounds is the size of the map in pixels, the view never leaves it
@@ -103,4 +107,8 @@ float kon_tweenStep(kon_tween_t *tween, float dt);
float kon_tweenValue(const kon_tween_t *tween);
int kon_tweenDone(const kon_tween_t *tween);
+
+#ifdef __cplusplus
+}
+#endif
#endif