summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/trie.c2
1 files changed, 1 insertions, 1 deletions
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 <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