From ccbff779918934d1f863bffd5b411926d39390d8 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 9 Nov 2022 12:57:04 -0500 Subject: trie: Check __has_attribute(target_clones) before using it --- src/trie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trie.c b/src/trie.c index 24cc3a3..4bbdf13 100644 --- a/src/trie.c +++ b/src/trie.c @@ -103,7 +103,7 @@ #include #include -#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 -- cgit v1.2.3