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/konsector.h | |
| parent | a2dc5ca4c659e2d0a9527cd0910bc76b65e6d09f (diff) | |
headers: extern C guards and C++ safe vector and rect constructors
Diffstat (limited to 'kon/konsector.h')
| -rw-r--r-- | kon/konsector.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kon/konsector.h b/kon/konsector.h index fa65a0e..3a26970 100644 --- a/kon/konsector.h +++ b/kon/konsector.h @@ -49,6 +49,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 ***/ /* a map is rooms seen from above. every room (sector) is a polygon of vertices with a floor and a ceiling height, and every @@ -177,6 +181,10 @@ int kon_entityInt(const kon_entity_t *entity, const char *key, int fallback); /*** implementation ***/ + +#ifdef __cplusplus +} +#endif #ifdef KONSECTOR_IMPLEMENTATION #include <math.h> |
