diff options
author | George Marques <george@gmarqu.es> | 2018-09-12 22:02:48 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2018-09-12 22:02:48 -0300 |
commit | fb6fe5405859e5169174729dfe79aad66084288e (patch) | |
tree | bd2ca3bb3e50497a719f494d674d619e938b8482 /thirdparty/zstd | |
parent | ffd565aea0b53d06633cbbe43b1454f3707e6fac (diff) |
Patch zstd to build for UWP ARM
Patch comes from upstream and can be removed when it makes to stable
release.
Diffstat (limited to 'thirdparty/zstd')
-rw-r--r-- | thirdparty/zstd/1314.diff | 13 | ||||
-rw-r--r-- | thirdparty/zstd/common/cpu.h | 2 |
2 files changed, 14 insertions, 1 deletions
diff --git a/thirdparty/zstd/1314.diff b/thirdparty/zstd/1314.diff new file mode 100644 index 0000000000..c9f4efadbf --- /dev/null +++ b/thirdparty/zstd/1314.diff @@ -0,0 +1,13 @@ +diff --git a/common/cpu.h b/common/cpu.h +index 88e0ebf44..eeb428ad5 100644 +--- a/common/cpu.h ++++ b/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); + { 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); { |