compat.h: Add detection of C++17.

git-svn-id: https://svn.eduke32.com/eduke32@6468 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2017-10-09 07:37:01 +00:00
parent 32d3ca1591
commit 7c2f233450

View file

@ -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