I am building all my CMake projects with clang compiler & Visual Studio IDE. This PR includes fixes which allows RTTR to be built with LLVM toolchain on Windows.
Clang on Windows uses __declspec attribute to define imported/exported functions, not __attribute__
the clang compiler is invoked from visual studio if __clang__ & _MSC_VER macros are defined
I am building all my CMake projects with clang compiler & Visual Studio IDE. This PR includes fixes which allows RTTR to be built with LLVM toolchain on Windows. Clang on Windows uses
__declspec
attribute to define imported/exported functions, not__attribute__
the clang compiler is invoked from visual studio if__clang__
&_MSC_VER
macros are defined