diff --git a/ext/bigdecimal/bits.h b/ext/bigdecimal/bits.h index 5dfda49741..ea9cb10833 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 /* for _lzcnt_u64 */ #elif defined(_MSC_VER) && _MSC_VER >= 1310 # include /* for the following intrinsics */