diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-11-10 09:58:57 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-11-10 09:58:57 -0500 |
commit | 4efbe8eca395c90fc0053c7ba1038ccb7bf69e61 (patch) | |
tree | 28cb2bc0052df4b3926d72a9da9df8c4ce59258f /src/diag.h | |
parent | e25261a90222de75781726a93ab809c660208afd (diff) | |
download | bfs-4efbe8eca395c90fc0053c7ba1038ccb7bf69e61.tar.xz |
config: Add constants for C standard versions
Diffstat (limited to 'src/diag.h')
-rw-r--r-- | src/diag.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |