aboutsummaryrefslogtreecommitdiff
path: root/src/compat.h
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-01-22 14:45:51 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-01-22 14:45:51 +0100
commit20d3efa74d982e4e1cfaa3726b5fb5f7e368d4c5 (patch)
tree7e4e1348c0e9559b54967ef3a33dc895e2e44b43 /src/compat.h
parent230b8f6f2eb7e603dd3a90f975fd9e98c2ce6e0f (diff)
Avoid redefining static_assert
Diffstat (limited to 'src/compat.h')
-rw-r--r--src/compat.h3
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