diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2022-11-09 12:57:04 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2022-11-09 12:57:33 -0500 |
commit | ccbff779918934d1f863bffd5b411926d39390d8 (patch) | |
tree | 5929bc1a0e8b10d514d89fdf0edf5b8e67141d4a /src | |
parent | fc63f1b33fb438e8f7690db9bd84e3c69fe86b51 (diff) | |
download | bfs-ccbff779918934d1f863bffd5b411926d39390d8.tar.xz |
trie: Check __has_attribute(target_clones) before using it
Diffstat (limited to 'src')
-rw-r--r-- | src/trie.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -103,7 +103,7 @@ #include <stdlib.h> #include <string.h> -#if __GNUC__ && (__i386__ || __x86_64__) +#if __has_attribute(target_clones) && (__i386__ || __x86_64__) # define TARGET_CLONES_POPCNT __attribute__((target_clones("popcnt", "default"))) #else # define TARGET_CLONES_POPCNT |