From c813ba2b0319fb6db2988261d94e0d208a42732a Mon Sep 17 00:00:00 2001 From: John Emmas Date: Fri, 28 Feb 2025 14:36:18 +0000 Subject: [PATCH] Ensure that 'ztk' will build a working DLL when built with MSVC --- libs/tk/ztk/config.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/tk/ztk/config.h b/libs/tk/ztk/config.h index d94a870710..86e48cac39 100644 --- a/libs/tk/ztk/config.h +++ b/libs/tk/ztk/config.h @@ -11,4 +11,8 @@ #define VERSION "2.14.0" /* defines how to decorate public symbols while building */ -/* #undef _ATK_EXTERN */ +#ifdef _MSC_VER +#define _ATK_EXTERN __declspec (dllexport) extern +#else +#define _ATK_EXTERN __attribute__((visibility("default"))) __declspec (dllexport) extern +#endif