From 7c2f233450a427a9d9d5d3abfbd360208ffdd055 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Mon, 9 Oct 2017 07:37:01 +0000 Subject: [PATCH] compat.h: Add detection of C++17. git-svn-id: https://svn.eduke32.com/eduke32@6468 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/include/compat.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/build/include/compat.h b/source/build/include/compat.h index fefba2832..f1ff71cc7 100644 --- a/source/build/include/compat.h +++ b/source/build/include/compat.h @@ -57,7 +57,9 @@ # define CSTD 0 #endif -#if defined __cplusplus && __cplusplus >= 201402L +#if defined __cplusplus && __cplusplus >= 201703L +# define CXXSTD 2017 +#elif defined __cplusplus && __cplusplus >= 201402L # define CXXSTD 2014 #elif defined __cplusplus && __cplusplus >= 201103L # define CXXSTD 2011