Skip to content

Commit e7b4ebb

Browse files
authored
Update max (#85)
1 parent 5c4c13f commit e7b4ebb

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

  • Dependencies/max/Code/max/Compiling/Configuration/Compiler

‎Dependencies/max/Code/max/Compiling/Configuration/Compiler/VC.hpp‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,22 @@
1111

1212
#define MAX_COMPILER_MESSAGE( Message ) __pragma( message( Message ) )
1313

14-
#if _MSC_VER > 1943
14+
#if _MSC_VER > 1951
1515
MAX_COMPILER_MESSAGE("Compiling with a newer version of MSVC than max recognizes. Using last known version.");
16+
#elif _MSC_VER >= 1951
17+
// MSVC++ (Visual Studio 2026 / version 18.9)
18+
// TODO: This version number probably also matches some earlier version between the previous 18.2 and the current 18.9
19+
#define MAX_COMPILER_VERSION_MAJOR 18
20+
#define MAX_COMPILER_VERSION_MINOR 9
21+
#elif _MSC_VER >= 1950
22+
// MSVC++ (Visual Studio 2026 / version 18.2)
23+
#define MAX_COMPILER_VERSION_MAJOR 18
24+
#define MAX_COMPILER_VERSION_MINOR 2
25+
// 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
26+
#elif _MSC_VER >= 1944
27+
// MSVC++ (Visual Studio 2022 / version 17.14)
28+
#define MAX_COMPILER_VERSION_MAJOR 17
29+
#define MAX_COMPILER_VERSION_MINOR 14
1630
#elif _MSC_VER >= 1943
1731
// MSVC++ (Visual Studio 2022 / version 17.13)
1832
#define MAX_COMPILER_VERSION_MAJOR 17

0 commit comments

Comments
 (0)