From 8b06dd03aa1e5ced3cae0e6642d523b4803e0057 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 24 Aug 2021 23:00:17 +0200 Subject: [PATCH] Use "vc143" version-dependent compiler prefix for MSVS 2022 MSVS 2022 preview defines _MSC_VER as 1930. --- include/msvc/wx/setup.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/msvc/wx/setup.h b/include/msvc/wx/setup.h index 6462731d18..5a2f6e2434 100644 --- a/include/msvc/wx/setup.h +++ b/include/msvc/wx/setup.h @@ -76,8 +76,10 @@ #define wxCOMPILER_PREFIX vc140 #elif _MSC_VER >= 1910 && _MSC_VER < 1920 #define wxCOMPILER_PREFIX vc141 - #elif _MSC_VER >= 1920 && _MSC_VER < 2000 + #elif _MSC_VER >= 1920 && _MSC_VER < 1930 #define wxCOMPILER_PREFIX vc142 + #elif _MSC_VER >= 1930 && _MSC_VER < 2000 + #define wxCOMPILER_PREFIX vc143 #else #error "Unknown MSVC 14.x compiler version, please report to wx-dev." #endif