diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-05-11 10:12:35 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-05-11 13:14:04 -0400 |
commit | 59f87eed2b930af2f31fd1d1fb2589f80f426ee0 (patch) | |
tree | 1563b95fab7fb09da5f629704315785ec0a60e64 /src/config.h | |
parent | 87d8d5928325f951f40b5f87292a17586b85943b (diff) | |
download | bfs-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.h | 6 |
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 |