diff --git a/shared/helpers.h b/shared/helpers.h index 10a9de0e..7ff60d03 100644 --- a/shared/helpers.h +++ b/shared/helpers.h @@ -181,6 +181,7 @@ do { \ * @param cond Expression to check for truth * @param msg Message to print on failure */ +#if !(defined(__cplusplus) && __cplusplus >= 201103L) #ifndef static_assert # ifdef _Static_assert # define static_assert(cond, msg) _Static_assert(cond, msg) @@ -188,6 +189,7 @@ do { \ # define static_assert(cond, msg) # endif #endif +#endif /** Ensure argument is of given type */ #ifndef TYPEVERIFY