From 20d3efa74d982e4e1cfaa3726b5fb5f7e368d4c5 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 22 Jan 2024 14:45:51 +0100 Subject: Avoid redefining static_assert --- src/compat.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/compat.h b/src/compat.h index e5bfcfe..87ab9fb 100644 --- a/src/compat.h +++ b/src/compat.h @@ -20,6 +20,9 @@ #endif #if !LIBCOMPAT_IS_23 +# ifdef static_assert +# undef static_assert +# endif # define static_assert(e, ...) _Static_assert(e, ""__VA_ARGS__) #endif -- cgit v1.2.3