]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
C23 defines static_assert
authorAlan T. DeKok <aland@freeradius.org>
Sat, 30 Nov 2024 21:34:07 +0000 (16:34 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 30 Nov 2024 21:47:12 +0000 (16:47 -0500)
src/include/build.h

index 52c460c5cddf37d57cbd8ce89e0f4bffb3239e6d..e6cc822765a42facc335c5dfb3a9a7e5ffb78ad5 100644 (file)
@@ -32,7 +32,9 @@ extern "C" {
  *
  */
 #ifndef static_assert
+# if __STDC_VERSION__ < 202000
 #  define static_assert _Static_assert
+# endif
 # else
 #  include <assert.h>
 #endif