summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/bigdecimal/bits.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bigdecimal/bits.h b/ext/bigdecimal/bits.h
index 5dfda49..ea9cb10 100644
--- a/ext/bigdecimal/bits.h
+++ b/ext/bigdecimal/bits.h
@@ -4,7 +4,7 @@
#include "feature.h"
#include "static_assert.h"
-#if defined(HAVE_X86INTRIN_H)
+#if defined(__x86_64__) && defined(HAVE_X86INTRIN_H)
# include <x86intrin.h> /* for _lzcnt_u64 */
#elif defined(_MSC_VER) && _MSC_VER >= 1310
# include <intrin.h> /* for the following intrinsics */