Added a HAVE_CXX20 define

This commit is contained in:
Charles Dang 2021-01-17 10:09:19 +11:00
parent bb49aa8397
commit 3ff0b7f081

View file

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