diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-08-28 15:29:42 -0500 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-09-05 11:44:57 -0500 |
commit | 4c84cb6ae8dc241eb3f50dd8899132024592dee2 (patch) | |
tree | 7eb861c7e5d159f61a7794152a2c1859247f5162 /core | |
parent | 88ed6af1e6844908293aa1599421b40870be513c (diff) | |
download | redot-engine-4c84cb6ae8dc241eb3f50dd8899132024592dee2.tar.gz |
SCons: Pass `/Zc:__cplusplus` in MSVC builds
Diffstat (limited to 'core')
-rw-r--r-- | core/typedefs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/typedefs.h b/core/typedefs.h index 0de803293d..35c4668581 100644 --- a/core/typedefs.h +++ b/core/typedefs.h @@ -44,6 +44,9 @@ #include "core/error/error_list.h" #include <cstdint> +// Ensure that C++ standard is at least C++17. If on MSVC, also ensures that the `Zc:__cplusplus` flag is present. +static_assert(__cplusplus >= 201703L); + // Turn argument to string constant: // https://gcc.gnu.org/onlinedocs/cpp/Stringizing.html#Stringizing #ifndef _STR |