Fix Windows build: __cplusplus inaccurate on MSVC

This commit is contained in:
dmiller 2026-07-16 16:12:46 +00:00
parent 11d9cfc2d5
commit 2c7de4b6b3

View file

@ -166,7 +166,7 @@
#ifndef static_assert
# if defined(__cplusplus)
// If C++ but older than C++11
# if __cplusplus < 201103L
# if __cplusplus < 201103L && !(defined(_MSVC_LANG) && _MSVC_LANG >= 201103L)
# include <cassert>
# define static_assert(expr, msg) assert((expr) && (msg))
# endif