From 3ff0b7f08141bed0abec1d24f2467168f1709aa2 Mon Sep 17 00:00:00 2001 From: Charles Dang Date: Sun, 17 Jan 2021 10:09:19 +1100 Subject: [PATCH] Added a HAVE_CXX20 define --- src/global.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/global.hpp b/src/global.hpp index e4e8705d562e..c47fad90d797 100644 --- a/src/global.hpp +++ b/src/global.hpp @@ -39,9 +39,9 @@ #define UNUSED(x) ((void)(x)) /* to avoid warnings */ -// To allow using some optional C++17 features -#if __cplusplus >= 201703L -#define HAVE_CXX17 +// To allow using some optional C++20 features (TODO: use the actual C++20 value once that's finalized) +#if __cplusplus > 201703L +#define HAVE_CXX20 #endif #if defined(__clang__)