From 098891de6b9c2c0dd8f94985bc227cbac27c8973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arkadiusz=20W=C3=B3jcik?= Date: Fri, 10 Jan 2025 23:38:39 +0100 Subject: [PATCH] Exclude from C++ builds --- include/assert.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/assert.h b/include/assert.h index 624363e..b7eaf75 100644 --- a/include/assert.h +++ b/include/assert.h @@ -40,6 +40,8 @@ extern FOUNDATION_LIBC_NORETURN void foundation_libc_assert(char const * asserti #error "bad definition of FOUNDATION_LIBC_ASSERT_DEFAULT!" #endif +#if !defined(__cplusplus) #define static_assert FOUNDATION_LIBC_STATIC_ASSERT +#endif #endif