summaryrefslogtreecommitdiffstats
path: root/src/diag.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/diag.h
parente25261a90222de75781726a93ab809c660208afd (diff)
downloadbfs-4efbe8eca395c90fc0053c7ba1038ccb7bf69e61.tar.xz
config: Add constants for C standard versions
Diffstat (limited to 'src/diag.h')
-rw-r--r--src/diag.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/diag.h b/src/diag.h
index 870264e..981419e 100644
--- a/src/diag.h
+++ b/src/diag.h
@@ -14,7 +14,7 @@
/**
* static_assert() with an optional second argument.
*/
-#if __STDC_VERSION__ >= 202311L
+#if __STDC_VERSION__ >= C23
# define bfs_static_assert static_assert
#else
# define bfs_static_assert(...) bfs_static_assert_(__VA_ARGS__, #__VA_ARGS__, )
@@ -35,7 +35,7 @@ struct bfs_loc {
/**
* Get the current source code location.
*/
-#if __STDC_VERSION__ >= 202311L
+#if __STDC_VERSION__ >= C23
# define bfs_location() (&(static const struct bfs_loc)BFS_LOC_INIT)
#else
# define bfs_location() (&(const struct bfs_loc)BFS_LOC_INIT)