diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2018-11-01 21:58:31 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2018-11-01 21:58:31 -0400 |
commit | 2c4d653df0ae16bb221eb2a08314a051301236b5 (patch) | |
tree | 6ec84985a75d75de3934114f5351e12bbe0e3d23 /util.h | |
parent | 8c3b9aaaab11be9d0fe24a72ebb16e171ca22125 (diff) | |
download | bfs-2c4d653df0ae16bb221eb2a08314a051301236b5.tar.xz |
util: Wrap __has_include()
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -28,6 +28,12 @@ // Some portability concerns +#ifdef __has_include +# define BFS_HAS_INCLUDE(header) __has_include(header) +#else +# define BFS_HAS_INCLUDE(header) false +#endif + #if !defined(FNM_CASEFOLD) && defined(FNM_IGNORECASE) # define FNM_CASEFOLD FNM_IGNORECASE #endif |