Ensure that 'ztk' will build a working DLL when built with MSVC

This commit is contained in:
John Emmas 2025-02-28 14:36:18 +00:00
parent df5f8d48c9
commit c813ba2b03

View file

@ -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