diff options
author | Jeffrey Walton <noloader@gmail.com> | 2020-11-20 19:14:35 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2020-11-20 19:14:35 -0500 |
commit | 7177df3068b65c2c09da340c0ae4ddb4b1049a5f (patch) | |
tree | 7e45ef33ebc5eaee2c4a098e42381588bcbc8df1 /cpu.cpp | |
parent | d85a68625a705688ef61938c5e1ad254037992ae (diff) | |
download | cryptopp-git-7177df3068b65c2c09da340c0ae4ddb4b1049a5f.tar.gz |
Fix include for MSVC compiler (GH #972)
Thanks @wyattoday
Diffstat (limited to 'cpu.cpp')
-rw-r--r-- | cpu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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
|