diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-06-24 12:00:22 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-06-24 12:06:12 -0400 |
commit | 5c3572dc323527a5c168cc12a31b730e0749002d (patch) | |
tree | 9430894bcd1759823b956515b8397294f984c1f5 /src/config.h | |
parent | 93749993508eaa9035dbcb005f960bc0b64752f0 (diff) | |
download | bfs-5c3572dc323527a5c168cc12a31b730e0749002d.tar.xz |
Unify macro naming conventions
In particular, macros that decide whether to use a particular API/
dependency should be spelled BFS_USE_*, and should be configurable.
Diffstat (limited to 'src/config.h')
-rw-r--r-- | src/config.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/config.h b/src/config.h index 1671a0d..79bd931 100644 --- a/src/config.h +++ b/src/config.h @@ -189,8 +189,10 @@ /** * Check if function multiversioning via GNU indirect functions (ifunc) is supported. */ -#if !defined(BFS_TARGET_CLONES) && __has_attribute(target_clones) && (__GLIBC__ || __FreeBSD__ || __NetBSD__) -# define BFS_TARGET_CLONES true +#ifndef BFS_USE_TARGET_CLONES +# if __has_attribute(target_clones) && (__GLIBC__ || __FreeBSD__ || __NetBSD__) +# define BFS_USE_TARGET_CLONES true +# endif #endif /** |