summaryrefslogtreecommitdiff
path: root/thirdparty/zstd/common/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/zstd/common/cpu.h')
-rw-r--r--thirdparty/zstd/common/cpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/thirdparty/zstd/common/cpu.h b/thirdparty/zstd/common/cpu.h
index 4eb48e39e1..a109520a33 100644
--- a/thirdparty/zstd/common/cpu.h
+++ b/thirdparty/zstd/common/cpu.h
@@ -36,7 +36,7 @@ MEM_STATIC ZSTD_cpuid_t ZSTD_cpuid(void) {
U32 f1d = 0;
U32 f7b = 0;
U32 f7c = 0;
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && (defined(_M_X64) || defined(_M_IX86))
int reg[4];
__cpuid((int*)reg, 0);
{