From 64a533551de5b23d14c9e83bb07be6598de31d7d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 23 Aug 2019 00:16:24 +0200 Subject: [PATCH] Enable variadic macros support for MSVS 2005 as it has them Fix the test for MSVC version: variadic macros support is available since MSVS 2005, a.k.a. MSVC 8, using _MSC_VER=1400. --- include/internal/catch_compiler_capabilities.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/internal/catch_compiler_capabilities.h b/include/internal/catch_compiler_capabilities.h index 862fe06..b04f47f 100644 --- a/include/internal/catch_compiler_capabilities.h +++ b/include/internal/catch_compiler_capabilities.h @@ -163,7 +163,7 @@ //////////////////////////////////////////////////////////////////////////////// // Use variadic macros if the compiler supports them -#if ( defined _MSC_VER && _MSC_VER > 1400 && !defined __EDGE__) || \ +#if ( defined _MSC_VER && _MSC_VER >= 1400 && !defined __EDGE__) || \ ( defined __WAVE__ && __WAVE_HAS_VARIADICS ) || \ ( defined __GNUC__ && __GNUC__ >= 3 ) || \ ( !defined __cplusplus && __STDC_VERSION__ >= 199901L || __cplusplus >= 201103L )