summaryrefslogtreecommitdiff
path: root/cpu.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2020-11-20 19:14:35 -0500
committerJeffrey Walton <noloader@gmail.com>2020-11-20 19:14:35 -0500
commit7177df3068b65c2c09da340c0ae4ddb4b1049a5f (patch)
tree7e45ef33ebc5eaee2c4a098e42381588bcbc8df1 /cpu.cpp
parentd85a68625a705688ef61938c5e1ad254037992ae (diff)
downloadcryptopp-git-7177df3068b65c2c09da340c0ae4ddb4b1049a5f.tar.gz
Fix include for MSVC compiler (GH #972)
Thanks @wyattoday
Diffstat (limited to 'cpu.cpp')
-rw-r--r--cpu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu.cpp b/cpu.cpp
index 390dcfb1..5b92b165 100644
--- a/cpu.cpp
+++ b/cpu.cpp
@@ -14,9 +14,9 @@
#include "misc.h"
#include "stdcpp.h"
-// For _xgetbv on Microsoft 32-bit and 64-bit platforms
+// For _xgetbv on Microsoft 32-bit and 64-bit Intel platforms
// https://github.com/weidai11/cryptopp/issues/972
-#if _MSC_VER >= 1600
+#if _MSC_VER >= 1600 && (defined(_M_IX86) || defined(_M_X64))
# include <immintrin.h>
#endif