summaryrefslogtreecommitdiffstats
path: root/src/config.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-11-10 09:58:57 -0500
committerTavian Barnes <tavianator@tavianator.com>2023-11-10 09:58:57 -0500
commit4efbe8eca395c90fc0053c7ba1038ccb7bf69e61 (patch)
tree28cb2bc0052df4b3926d72a9da9df8c4ce59258f /src/config.h
parente25261a90222de75781726a93ab809c660208afd (diff)
downloadbfs-4efbe8eca395c90fc0053c7ba1038ccb7bf69e61.tar.xz
config: Add constants for C standard versions
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/config.h b/src/config.h
index db62ef8..821e4a9 100644
--- a/src/config.h
+++ b/src/config.h
@@ -8,9 +8,17 @@
#ifndef BFS_CONFIG_H
#define BFS_CONFIG_H
+// Possible __STDC_VERSION__ values
+
+#define C95 199409L
+#define C99 199901L
+#define C11 201112L
+#define C17 201710L
+#define C23 202311L
+
#include <stddef.h>
-#if __STDC_VERSION__ < 202311L
+#if __STDC_VERSION__ < C23
# include <stdalign.h>
# include <stdbool.h>
# include <stdnoreturn.h>