From 78ff3ff16fa2351ae73b20550d0c2c72fa1b289f Mon Sep 17 00:00:00 2001 From: Sergey Podobry Date: Thu, 12 Oct 2023 14:49:53 +0300 Subject: [PATCH] Fix compiling on MinGW --- test/Common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Common.h b/test/Common.h index cba6e98..054bb5b 100644 --- a/test/Common.h +++ b/test/Common.h @@ -1,6 +1,6 @@ #pragma once -#ifdef __cpp_constexpr +#if defined(__cpp_constexpr) && (!defined(__MINGW32__) || defined(__MINGW64_VERSION_MAJOR)) # include "doctest/2.4.11/doctest.h" // C++11 and higher #else # include "doctest/1.2.9/doctest.h" // pre C++11