diff options
| author | KonAki <konaki@anokonaki.org> | 2026-10-13 10:28:17 +0800 |
|---|---|---|
| committer | KonAki <konaki@anokonaki.org> | 2026-10-13 10:28:17 +0800 |
| commit | d3432fcc288a53dff9eb219c8857ca48c5981323 (patch) | |
| tree | fba5cc730c91d2c674efe6d71dd20e9d6bf7d0d8 /kon/konmodel.h | |
| parent | a2dc5ca4c659e2d0a9527cd0910bc76b65e6d09f (diff) | |
headers: extern C guards and C++ safe vector and rect constructors
Diffstat (limited to 'kon/konmodel.h')
| -rw-r--r-- | kon/konmodel.h | 8 |
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 |
