From 23527a5f81c92fa057730b2604e54a9e4a050428 Mon Sep 17 00:00:00 2001 From: "arata, mizuki" Date: Sun, 28 Aug 2016 00:45:12 +0900 Subject: [PATCH] Fix wxCHECK_VISUALC_VERSION macro to correctly detect VC14 --- include/wx/compiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/compiler.h b/include/wx/compiler.h index dfab0a25b4..7ff4574005 100644 --- a/include/wx/compiler.h +++ b/include/wx/compiler.h @@ -102,7 +102,7 @@ non existing (presumably for the superstitious reasons) VC13, so we now need to account for this with an extra offset. */ -# define wxVISUALC_VERSION(major) ( (6 + (major >= 14 ? 1 : 0) + major) * 100 ) +# define wxVISUALC_VERSION(major) ( (6 - (major >= 14 ? 1 : 0) + major) * 100 ) # define wxCHECK_VISUALC_VERSION(major) ( __VISUALC__ >= wxVISUALC_VERSION(major) ) #endif