From ec0cb6b43c0166e137ee25696875c44574c30c1f Mon Sep 17 00:00:00 2001 From: Paolo Marrone Date: Wed, 14 May 2025 17:39:03 +0200 Subject: [PATCH] add extern "C" for c++ --- vinci.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vinci.h b/vinci.h index 1dfe74b..6c4de96 100644 --- a/vinci.h +++ b/vinci.h @@ -21,6 +21,9 @@ #ifndef VINCI_H #define VINCI_H +#ifdef __cplusplus +extern "C" { +#endif #include @@ -58,4 +61,7 @@ void window_hide (window *w); void window_set_data (window *w, void *data); void* window_get_data (window *w); +#ifdef __cplusplus +} +#endif #endif