I don't believe Clang defines _MSC_VER when targeting MinGW. For MinGW, I belive it also defines __MINGW32__ or __MINGW64__ depending on target architecture.
Cheers, Hans On Wed, Oct 25, 2017 at 8:00 AM, degski via cfe-users <cfe-users@lists.llvm.org> wrote: > Is there a macro defined by Clang that helps to distinguish between > Clang/LLVM is called under MinGW/Cygwin and Clang/LLVM with/from MSVC? > > Have a good day, > > degski > > _______________________________________________ > cfe-users mailing list > cfe-users@lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users > _______________________________________________ cfe-users mailing list cfe-users@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users