From 4007980c0ccbb0213c170e299b5b6da99c94ebc0 Mon Sep 17 00:00:00 2001 From: EgzoT Date: Wed, 28 Feb 2018 21:48:27 +0100 Subject: [PATCH] Change outdated compiler name for VS (#920) Change "msvc12" compiler name to "Visual Studio [13-17]" for Visual Studio compiler. Name based on "_MSC_VER" parameter. --- src/framework/stdext/compiler.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/framework/stdext/compiler.h b/src/framework/stdext/compiler.h index 7a8f848f..3e27dc10 100644 --- a/src/framework/stdext/compiler.h +++ b/src/framework/stdext/compiler.h @@ -45,7 +45,16 @@ #pragma warning(disable:4146) // unary minus operator applied to unsigned type, result still unsigned #pragma warning(disable:4800) // 'A' : forcing value to bool 'true' or 'false' (performance warning) - #define BUILD_COMPILER "msvc12" + #if _MSC_VER == 1912 || _MSC_VER == 1911 || _MSC_VER == 1910 + #define BUILD_COMPILER "Visual Studio 2017" + #elif _MSC_VER == 1900 + #define BUILD_COMPILER "Visual Studio 2015" + #elif _MSC_VER == 1800 + #define BUILD_COMPILER "Visual Studio 2013" + #else + #define BUILD_COMPILER "Visual Studio" + #endif + #define __PRETTY_FUNCTION__ __FUNCDNAME__ #else #error "Compiler not supported."