From d7c4faef1018db5c402d4cd3739077d77b5b1ff5 Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Wed, 12 Feb 2025 04:59:05 -0500 Subject: [PATCH] MSVC 17.13 was released. Update max's understanding of MSVC --- Code/max/Compiling/Configuration/Compiler/VC.hpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Code/max/Compiling/Configuration/Compiler/VC.hpp b/Code/max/Compiling/Configuration/Compiler/VC.hpp index b771f3b..e4b0504 100644 --- a/Code/max/Compiling/Configuration/Compiler/VC.hpp +++ b/Code/max/Compiling/Configuration/Compiler/VC.hpp @@ -11,8 +11,12 @@ #define MAX_COMPILER_MESSAGE( Message ) __pragma( message( Message ) ) -#if _MSC_VER > 1939 - MAX_COMPILER_MESSAGE( "Compiling with a newer version of MSVC than max recognizes. Using last known version." ); +#if _MSC_VER > 1943 + MAX_COMPILER_MESSAGE("Compiling with a newer version of MSVC than max recognizes. Using last known version."); +#elif _MSC_VER >= 1943 + // MSVC++ (Visual Studio 2022 / version 17.13) + #define MAX_COMPILER_VERSION_MAJOR 17 + #define MAX_COMPILER_VERSION_MINOR 13 #elif _MSC_VER >= 1939 // MSVC++ (Visual Studio 2022 / version 17.9) #define MAX_COMPILER_VERSION_MAJOR 17 @@ -244,8 +248,10 @@ #if _MSC_FULL_VER >= 190024210 // MSVC++ 14.3 (Visual Studio 2015 Update 3) // Visual Studio 2015 Update 3 introduced the _MSVC_LANG pre-defined macro - #if _MSVC_LANG > 202004L - #MAX_COMPILER_MESSAGE( "Compiling with a newer version of C++ than max recognizes. Using last known version."); + #if _MSVC_LANG > 202400L + MAX_COMPILER_MESSAGE("Compiling with a newer version of C++ than max recognizes. Using last known version."); + #elif _MSVC_LANG >= 202400L + #define MAX_CPP_23 #elif _MSVC_LANG >= 202004L #define MAX_CPP_20 #elif _MSVC_LANG >= 201705L