diff --git a/include/wut_structsize.h b/include/wut_structsize.h index fb89b371..99ef9c0a 100644 --- a/include/wut_structsize.h +++ b/include/wut_structsize.h @@ -3,7 +3,7 @@ #include // Ensure structs are correct size & offsets -#if defined(static_assert) +#if defined(static_assert) || defined(__cplusplus) # define WUT_CHECK_SIZE(Type, Size) \ static_assert(sizeof(Type) == Size, \ #Type " must be " #Size " bytes")