From a82fb80a996f944069f2f97d73b38944bda2e2cb Mon Sep 17 00:00:00 2001 From: anth64 Date: Tue, 21 Oct 2025 00:10:20 +0200 Subject: [PATCH] prevent c++ name mangling --- include/stk.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/stk.h b/include/stk.h index 77a6491..754f147 100644 --- a/include/stk.h +++ b/include/stk.h @@ -3,7 +3,15 @@ #include "stk_version.h" +#ifdef __cplusplus +extern "C" { +#endif + int stk_init(void); int stk_shutdown(void); +#ifdef __cplusplus +} +#endif + #endif /* STK_H */