OSDN Git Service

Added support for Visual Studio 2019.5 (v16.5) + simplified detection for newer versi...
[mutilities/MUtilities.git] / include / MUtils / Version.h
index da4f1a5..1d4cb79 100644 (file)
@@ -1,6 +1,6 @@
 ///////////////////////////////////////////////////////////////////////////////
 // MuldeR's Utilities for Qt
-// Copyright (C) 2004-2018 LoRd_MuldeR <MuldeR2@GMX.de>
+// Copyright (C) 2004-2019 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,32 +67,32 @@ namespace MUtils
                                                #error Compiler is not supported!
                                        #endif
                                #elif defined(_MSC_VER)
-                                       #if (_MSC_VER == 1913)
-                                               #if((_MSC_FULL_VER >= 191326128) && (_MSC_FULL_VER <= 191326129))
-                                                       "MSVC 2017.6";
-                                               #else
-                                                       #error Compiler version is not supported yet!
-                                               #endif
+                                       #if (_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)
-                                               #if((_MSC_FULL_VER >= 191225830) && (_MSC_FULL_VER <= 191225835))
-                                                       "MSVC 2017.5";
-                                               #else
-                                                       #error Compiler version is not supported yet!
-                                               #endif
+                                               "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";
@@ -139,12 +139,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