summaryrefslogtreecommitdiff
path: root/kon/konmodel.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/konmodel.h
parenta2dc5ca4c659e2d0a9527cd0910bc76b65e6d09f (diff)
headers: extern C guards and C++ safe vector and rect constructors
Diffstat (limited to 'kon/konmodel.h')
-rw-r--r--kon/konmodel.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/kon/konmodel.h b/kon/konmodel.h
index 9120194..4354a25 100644
--- a/kon/konmodel.h
+++ b/kon/konmodel.h
@@ -37,6 +37,10 @@
#error "this needs the 3D part of konsofren, define KONSOFREN_3D before the first include of konsofren.h (build.sh does it for -m 3d, model and sector)"
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*** definition ***/
#define KON_MODEL_MAX_BONES 128
@@ -159,4 +163,8 @@ void kon_modelDraw(kon_framebuffer_t *fb, kon_mat4_t viewProjection, kon_mat4_t
uint8_t *kon_modelSerialize(const kon_model_t *model, size_t *size);
#endif
+
+#ifdef __cplusplus
+}
+#endif
#endif