From 38499db283131bfdf3ee00850f2778d93adc9db9 Mon Sep 17 00:00:00 2001 From: #Momo <40578274+MomoDeve@users.noreply.github.com> Date: Tue, 5 Jan 2021 22:30:40 +0300 Subject: [PATCH] fixed DLL attributes deduction for clang on Windows it still should be __declspec --- src/rttr/detail/base/core_prerequisites.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rttr/detail/base/core_prerequisites.h b/src/rttr/detail/base/core_prerequisites.h index 6aa29d77..ba0b122a 100644 --- a/src/rttr/detail/base/core_prerequisites.h +++ b/src/rttr/detail/base/core_prerequisites.h @@ -112,7 +112,10 @@ namespace rttr ///////////////////////////////////////////////////////////////////////////////////////// // Compiler specific cmds for export and import code to DLL ///////////////////////////////////////////////////////////////////////////////////////// -#if RTTR_COMPILER == RTTR_COMPILER_MSVC || __MINGW32__ || __CYGWIN__ +#if RTTR_COMPILER == RTTR_COMPILER_MSVC ||\ + (RTTR_COMPILER == RTTR_COMPILER_CLANG && defined(_MSC_VER)) ||\ + defined(__MINGW32__) ||\ + defined(__CYGWIN__) # define RTTR_HELPER_DLL_IMPORT __declspec( dllimport ) # define RTTR_HELPER_DLL_EXPORT __declspec( dllexport ) # define RTTR_HELPER_DLL_LOCAL