diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-01-22 14:45:51 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-01-22 14:45:51 +0100 |
commit | 20d3efa74d982e4e1cfaa3726b5fb5f7e368d4c5 (patch) | |
tree | 7e4e1348c0e9559b54967ef3a33dc895e2e44b43 | |
parent | 230b8f6f2eb7e603dd3a90f975fd9e98c2ce6e0f (diff) |
Avoid redefining static_assert
-rw-r--r-- | src/compat.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 |