diff options
Diffstat (limited to 'zencore')
| -rw-r--r-- | zencore/include/zencore/zencore.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/zencore/include/zencore/zencore.h b/zencore/include/zencore/zencore.h index fe6b90c7c..58c7f646d 100644 --- a/zencore/include/zencore/zencore.h +++ b/zencore/include/zencore/zencore.h @@ -47,8 +47,13 @@ # error Unknown compiler #endif -#ifndef ZEN_COMPILER_MSC -# define ZEN_COMPILER_MSC 0 +// Check for C++20 support +#if !ZEN_PLATFORM_WINDOWS +# if ZEN_COMPILER_CLANG && __clang_major__ < 14 +# error LLVM-14 onwards required for complete C++20 support +# elif ZEN_COMPILER_GCC && __GNUC__ < 11 +# error GCC-11 onwards required for complete C++20 support +# endif #endif #ifndef ZEN_COMPILER_CLANG |