rttrorg / rttr

C++ Reflection Library
https://www.rttr.org
MIT License
3.17k stars 439 forks source link

fixes for clang build in Visual Studio #304

Open MomoDeve opened 3 years ago

MomoDeve commented 3 years ago

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