Closed MomoDeve closed 1 day ago
AFAIK MinGW* and cygwin compilers do not have auto linking support, so #if defined(WIN32)
won't work right all the time.
Is there some macro to uniquely identify clang usage on visual studio?
I havent found macro exactly for that, me myself checking it by writing
#if defined(__clang__) && defined(_WIN32)
Instead of _WIN32
there could also be _MSC_VER
, clang sets it for compatibilty with msvc compiler if it was launched using Visual Studio toolchain
Fixed by manually including winapi libraries: