From 2360a87cc3bdcc87ad4eb208e5d709e4e40f9744 Mon Sep 17 00:00:00 2001 From: Zephyr Lykos Date: Sun, 12 Jan 2025 15:37:37 +0800 Subject: [PATCH] Fix symbol visibility on clang-cl --- include/Zycore/Defines.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/Zycore/Defines.h b/include/Zycore/Defines.h index 226d808..7bc5c97 100644 --- a/include/Zycore/Defines.h +++ b/include/Zycore/Defines.h @@ -64,6 +64,9 @@ #if defined(__clang__) # define ZYAN_CLANG # define ZYAN_GNUC +# if defined(_MSC_VER) +# define ZYAN_CLANG_CL +# endif #elif defined(__ICC) || defined(__INTEL_COMPILER) # define ZYAN_ICC #elif defined(__GNUC__) || defined(__GNUG__) @@ -190,7 +193,7 @@ /* Generic DLL import/export helpers */ /* ============================================================================================== */ -#if defined(ZYAN_MSVC) +#if defined(ZYAN_MSVC) || defined(ZYAN_CLANG_CL) # define ZYAN_DLLEXPORT __declspec(dllexport) # define ZYAN_DLLIMPORT __declspec(dllimport) #else