From c03ad5cfe5555dcc6b026bab00dfbcaadfe1de12 Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Wed, 2 Sep 2026 23:14:57 -0400 Subject: [PATCH] Update max --- .../max/Compiling/Configuration/Compiler/VC.hpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Dependencies/max/Code/max/Compiling/Configuration/Compiler/VC.hpp b/Dependencies/max/Code/max/Compiling/Configuration/Compiler/VC.hpp index e4b0504..dd078fe 100644 --- a/Dependencies/max/Code/max/Compiling/Configuration/Compiler/VC.hpp +++ b/Dependencies/max/Code/max/Compiling/Configuration/Compiler/VC.hpp @@ -11,8 +11,22 @@ #define MAX_COMPILER_MESSAGE( Message ) __pragma( message( Message ) ) -#if _MSC_VER > 1943 +#if _MSC_VER > 1951 MAX_COMPILER_MESSAGE("Compiling with a newer version of MSVC than max recognizes. Using last known version."); +#elif _MSC_VER >= 1951 + // MSVC++ (Visual Studio 2026 / version 18.9) + // TODO: This version number probably also matches some earlier version between the previous 18.2 and the current 18.9 + #define MAX_COMPILER_VERSION_MAJOR 18 + #define MAX_COMPILER_VERSION_MINOR 9 +#elif _MSC_VER >= 1950 + // MSVC++ (Visual Studio 2026 / version 18.2) + #define MAX_COMPILER_VERSION_MAJOR 18 + #define MAX_COMPILER_VERSION_MINOR 2 +// TODO: I missed 18.0 and 18.1. Find what their _MSC_VER was. Maybe they all share 1950? This might make sense because they're all MSVC Build Tools 14.50 +#elif _MSC_VER >= 1944 + // MSVC++ (Visual Studio 2022 / version 17.14) + #define MAX_COMPILER_VERSION_MAJOR 17 + #define MAX_COMPILER_VERSION_MINOR 14 #elif _MSC_VER >= 1943 // MSVC++ (Visual Studio 2022 / version 17.13) #define MAX_COMPILER_VERSION_MAJOR 17