From 2c7de4b6b38398bab353d628350b5082afc27583 Mon Sep 17 00:00:00 2001 From: dmiller Date: Thu, 16 Jul 2026 16:12:46 +0000 Subject: [PATCH] Fix Windows build: __cplusplus inaccurate on MSVC --- nbase/nbase.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nbase/nbase.h b/nbase/nbase.h index 9bd01236c..d77390a75 100644 --- a/nbase/nbase.h +++ b/nbase/nbase.h @@ -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 # define static_assert(expr, msg) assert((expr) && (msg)) # endif