OSDN Git Service

Added support for VS2022 + added project/solution files for VS2022.
[mutilities/MUtilities.git] / include / MUtils / Version.h
index 038cd4b..16ea2ed 100644 (file)
@@ -1,6 +1,6 @@
 ///////////////////////////////////////////////////////////////////////////////
 // MuldeR's Utilities for Qt
-// Copyright (C) 2004-2019 LoRd_MuldeR <MuldeR2@GMX.de>
+// Copyright (C) 2004-2021 LoRd_MuldeR <MuldeR2@GMX.de>
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -67,7 +67,27 @@ namespace MUtils
                                                #error Compiler is not supported!
                                        #endif
                                #elif defined(_MSC_VER)
-                                       #if (_MSC_VER == 1926)
+                                       #if (_MSC_VER == 1930)
+                                               #if (_MSC_FULL_VER <= 193030706)
+                                                       "MSVC 2022.0";
+                                               #else
+                                                       #error Compiler version is not supported yet!
+                                               #endif
+                                       #elif (_MSC_VER == 1929)
+                                               #if (_MSC_FULL_VER < 192930133)
+                                                       "MSVC 2019.10";
+                                               #else
+                                                       "MSVC 2019.11";
+                                               #endif
+                                       #elif (_MSC_VER == 1928)
+                                               #if (_MSC_FULL_VER < 192829910)
+                                                       "MSVC 2019.8";
+                                               #else
+                                                       "MSVC 2019.9";
+                                               #endif
+                                       #elif (_MSC_VER == 1927)
+                                               "MSVC 2019.7";
+                                       #elif (_MSC_VER == 1926)
                                                "MSVC 2019.6";
                                        #elif (_MSC_VER == 1925)
                                                "MSVC 2019.5";