From e028d196f5708fc79fcdd291eb819d3d3323d7e2 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Mon, 3 Jul 2023 16:42:03 +0200 Subject: [PATCH] gwin: add extern C to make usable from C++ --- src/gwin/gwin_class.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gwin/gwin_class.h b/src/gwin/gwin_class.h index 8ad884f7..d8f48980 100644 --- a/src/gwin/gwin_class.h +++ b/src/gwin/gwin_class.h @@ -61,6 +61,10 @@ typedef struct gwinVMT { } gwinVMT; /** @} */ +#ifdef __cplusplus +extern "C" { +#endif + #if GWIN_NEED_WIDGET || defined(__DOXYGEN__) /** @@ -442,6 +446,10 @@ gBool _gwinWMAdd(GHandle gh, const GWindowInit *pInit); #endif +#ifdef __cplusplus +} +#endif + #endif /* GFX_USE_GWIN */ #endif /* _CLASS_GWIN_H */