summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-05-20 13:50:01 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-05-20 13:50:01 -0400
commit35ff93aeab208c3f2b13622e84eb9b11c7195f17 (patch)
tree012d650ac2b5a72cbc59e756f154b99b3b88ef39 /src
parentffa83efbb604ba2ed921e86bc6c837f6d605faa2 (diff)
downloadbfs-35ff93aeab208c3f2b13622e84eb9b11c7195f17.tar.xz
prelude: Make sure to grab __GLIBC__
Diffstat (limited to 'src')
-rw-r--r--src/prelude.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/prelude.h b/src/prelude.h
index 72f88b0..7a8478c 100644
--- a/src/prelude.h
+++ b/src/prelude.h
@@ -16,7 +16,8 @@
#define C17 201710L
#define C23 202311L
-#include <stddef.h>
+// Get the static_assert() definition as well as __GLIBC__
+#include <assert.h>
#if __STDC_VERSION__ < C23
# include <stdalign.h>