hsutter / cppfront

A personal experimental C++ Syntax 2 -> Syntax 1 compiler
Other
5.56k stars 248 forks source link

Fix Clang with MSVC standard library #1307

Closed MatthieuHernandez closed 1 month ago

MatthieuHernandez commented 1 month ago

When compiling with Clang and MSVC as the standard library, clang defines the _MSC_VER and _MSC_FULL_VER macros. Use the __clang_major__ macro to ensure that the code is compiled with MSVC.

MatthieuHernandez commented 1 month ago

This is a duplicate of PR https://github.com/hsutter/cppfront/pull/1306.