From ef6ab776d55f2775957b107a3a0d8c45ece119b8 Mon Sep 17 00:00:00 2001 From: Kenta Murata Date: Sat, 2 Jan 2021 10:18:58 +0900 Subject: [PATCH] Add __x86_64__ guard to include x86intrin.h --- ext/bigdecimal/bits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */