summaryrefslogtreecommitdiffstats
path: root/src/config.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-05-11 10:12:35 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-05-11 13:14:04 -0400
commit59f87eed2b930af2f31fd1d1fb2589f80f426ee0 (patch)
tree1563b95fab7fb09da5f629704315785ec0a60e64 /src/config.h
parent87d8d5928325f951f40b5f87292a17586b85943b (diff)
downloadbfs-59f87eed2b930af2f31fd1d1fb2589f80f426ee0.tar.xz
config: Provide <stdalign.h> and <stdbool.h>
In anticipation of C23, since those headers won't be necessary any more.
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/config.h b/src/config.h
index 229bafb..4408feb 100644
--- a/src/config.h
+++ b/src/config.h
@@ -8,9 +8,13 @@
#ifndef BFS_CONFIG_H
#define BFS_CONFIG_H
-#include <stdbool.h>
#include <stddef.h>
+#if __STDC_VERSION__ < 202311L
+# include <stdalign.h>
+# include <stdbool.h>
+#endif
+
// bfs packaging configuration
#ifndef BFS_COMMAND