From 6fb014d0b135ba961bc3c04a5c89cb26fcf902ba Mon Sep 17 00:00:00 2001 From: XMRig Date: Tue, 21 May 2019 12:14:20 +0700 Subject: [PATCH] Fixed MSVC 2019 version detection. --- src/version.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/version.h b/src/version.h index f91a812f0..384c2513a 100644 --- a/src/version.h +++ b/src/version.h @@ -39,7 +39,9 @@ #define APP_VER_PATCH 4 #ifdef _MSC_VER -# if (_MSC_VER >= 1910) +# if (_MSC_VER >= 1920) +# define MSVC_VERSION 2019 +# elif (_MSC_VER >= 1910 && _MSC_VER < 1920) # define MSVC_VERSION 2017 # elif _MSC_VER == 1900 # define MSVC_VERSION 2015