diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2019-01-31 23:50:25 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2019-01-31 23:54:36 -0500 |
commit | 185026706d926d1f94bd1c42a11dd83e6b8e74ec (patch) | |
tree | 0187871a790e35d80b5bf66fed497ecc9286399c /util.h | |
parent | deef4028ecd70d5b0006b83da07d170c38efb3aa (diff) | |
download | bfs-185026706d926d1f94bd1c42a11dd83e6b8e74ec.tar.xz |
stat: Work around msan not knowing about statx()
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,6 +1,6 @@ /**************************************************************************** * bfs * - * Copyright (C) 2016-2018 Tavian Barnes <tavianator@tavianator.com> * + * Copyright (C) 2016-2019 Tavian Barnes <tavianator@tavianator.com> * * * * Permission to use, copy, modify, and/or distribute this software for any * * purpose with or without fee is hereby granted. * @@ -27,6 +27,12 @@ // Some portability concerns +#ifdef __has_feature +# define BFS_HAS_FEATURE(feature, fallback) __has_feature(feature) +#else +# define BFS_HAS_FEATURE(feature, fallback) fallback +#endif + #ifdef __has_include # define BFS_HAS_INCLUDE(header, fallback) __has_include(header) #else |