summaryrefslogtreecommitdiff
path: root/kon/konui.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/konui.h
parenta2dc5ca4c659e2d0a9527cd0910bc76b65e6d09f (diff)
headers: extern C guards and C++ safe vector and rect constructors
Diffstat (limited to 'kon/konui.h')
-rw-r--r--kon/konui.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/kon/konui.h b/kon/konui.h
index 1a5e581..9b253ca 100644
--- a/kon/konui.h
+++ b/kon/konui.h
@@ -33,6 +33,10 @@
#include "konsofren.h"
#include "konfont.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*** definition ***/
typedef struct kon_ui kon_ui_t;
@@ -86,4 +90,8 @@ void kon_uiPopId(kon_ui_t *ui);
kon_rect_t kon_uiLastRect(const kon_ui_t *ui);
+
+#ifdef __cplusplus
+}
+#endif
#endif