summaryrefslogtreecommitdiff
path: root/kon/konparticles.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/konparticles.h
parenta2dc5ca4c659e2d0a9527cd0910bc76b65e6d09f (diff)
headers: extern C guards and C++ safe vector and rect constructors
Diffstat (limited to 'kon/konparticles.h')
-rw-r--r--kon/konparticles.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/kon/konparticles.h b/kon/konparticles.h
index 9dad066..a49b82f 100644
--- a/kon/konparticles.h
+++ b/kon/konparticles.h
@@ -28,6 +28,10 @@
#include "konsofren.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*** definition ***/
typedef struct kon_particle {
@@ -94,4 +98,8 @@ void kon_weatherRain(kon_particles_t *ps, int viewWidth, int viewHeight, int pow
void kon_weatherSnow(kon_particles_t *ps, int viewWidth, int viewHeight, int power);
void kon_weatherStorm(kon_particles_t *ps, int viewWidth, int viewHeight, int power);
+
+#ifdef __cplusplus
+}
+#endif
#endif