OSDN Git Service

Added support for VS2022 + added project/solution files for VS2022.
[mutilities/MUtilities.git] / include / MUtils / Version.h
index 642d0e8..16ea2ed 100644 (file)
@@ -1,6 +1,6 @@
 ///////////////////////////////////////////////////////////////////////////////
 // MuldeR's Utilities for Qt
-// Copyright (C) 2004-2018 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,38 +67,54 @@ namespace MUtils
                                                #error Compiler is not supported!
                                        #endif
                                #elif defined(_MSC_VER)
-                                       #if (_MSC_VER == 1914)
-                                               #if((_MSC_FULL_VER >= 191426430) && (_MSC_FULL_VER <= 191426433))
-                                                       "MSVC 2017.7";
+                                       #if (_MSC_VER == 1930)
+                                               #if (_MSC_FULL_VER <= 193030706)
+                                                       "MSVC 2022.0";
                                                #else
                                                        #error Compiler version is not supported yet!
                                                #endif
-                                       #elif (_MSC_VER == 1913)
-                                               #if((_MSC_FULL_VER >= 191326128) && (_MSC_FULL_VER <= 191326132))
-                                                       "MSVC 2017.6";
+                                       #elif (_MSC_VER == 1929)
+                                               #if (_MSC_FULL_VER < 192930133)
+                                                       "MSVC 2019.10";
                                                #else
-                                                       #error Compiler version is not supported yet!
+                                                       "MSVC 2019.11";
                                                #endif
-                                       #elif (_MSC_VER == 1912)
-                                               #if((_MSC_FULL_VER >= 191225830) && (_MSC_FULL_VER <= 191225835))
-                                                       "MSVC 2017.5";
+                                       #elif (_MSC_VER == 1928)
+                                               #if (_MSC_FULL_VER < 192829910)
+                                                       "MSVC 2019.8";
                                                #else
-                                                       #error Compiler version is not supported yet!
+                                                       "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";
+                                       #elif (_MSC_VER == 1924)
+                                               "MSVC 2019.4";
+                                       #elif (_MSC_VER == 1923)
+                                               "MSVC 2019.3";
+                                       #elif (_MSC_VER == 1922)
+                                               "MSVC 2019.2";
+                                       #elif (_MSC_VER == 1921)
+                                               "MSVC 2019.1";
+                                       #elif (_MSC_VER == 1920)
+                                               "MSVC 2019.0";
+                                       #elif (_MSC_VER == 1916)
+                                               "MSVC 2017.9";
+                                       #elif (_MSC_VER == 1915)
+                                               "MSVC 2017.8";
+                                       #elif (_MSC_VER == 1914)
+                                               "MSVC 2017.7";
+                                       #elif (_MSC_VER == 1913)
+                                               "MSVC 2017.6";
+                                       #elif (_MSC_VER == 1912)
+                                               "MSVC 2017.5";
                                        #elif (_MSC_VER == 1911)
-                                               #if((_MSC_FULL_VER >= 191125542) && (_MSC_FULL_VER <= 191125547))
-                                                       "MSVC 2017.4";
-                                               #elif((_MSC_FULL_VER >= 191125506) && (_MSC_FULL_VER <= 191125508))
-                                                       "MSVC 2017.3";
-                                               #else
-                                                       #error Compiler version is not supported yet!
-                                               #endif
+                                               "MSVC 2017.4";
                                        #elif (_MSC_VER == 1910)
-                                               #if ((_MSC_FULL_VER >= 191025017) && (_MSC_FULL_VER <= 191025019))
-                                                       "MSVC 2017.2";
-                                               #else
-                                                       #error Compiler version is not supported yet!
-                                               #endif
+                                               "MSVC 2017.2";
                                        #elif (_MSC_VER == 1900)
                                                #if (_MSC_FULL_VER == 190023026)
                                                        "MSVC 2015";
@@ -145,12 +161,6 @@ namespace MUtils
                                                #else
                                                        "MSVC 2010";
                                                #endif
-                                       #elif (_MSC_VER == 1500)
-                                               #if (_MSC_FULL_VER >= 150030729)
-                                                       "MSVC 2008-SP1";
-                                               #else
-                                                       "MSVC 2008";
-                                               #endif
                                        #else
                                                #error Compiler is not supported!
                                        #endif