diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2025-01-07 11:15:25 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2025-01-07 11:15:25 -0500 |
commit | c6d6720c3026efb74092c021a06f8f2c6d36fb67 (patch) | |
tree | e57d63d36eb0629d4d5fcc092855a6a582a93d1d /src | |
parent | 44dc45316dff757eafbcd1e09f4c52a285ff9738 (diff) | |
download | bfs-c6d6720c3026efb74092c021a06f8f2c6d36fb67.tar.xz |
build: Check for compound literal storage-class support
This lets us use them on GCC >= 13, even before C23.
Diffstat (limited to 'src')
-rw-r--r-- | src/diag.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -27,7 +27,7 @@ struct bfs_loc { /** * Get the current source code location. */ -#if __STDC_VERSION__ >= C23 +#if BFS_HAS_COMPOUND_LITERAL_STORAGE # define bfs_location() (&(static const struct bfs_loc)BFS_LOC_INIT) #else # define bfs_location() (&(const struct bfs_loc)BFS_LOC_INIT) |