From 18915ae2bda2e107e8b5ddc5b3d122c362391225 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Wed, 13 Aug 2014 12:32:12 +0200 Subject: [PATCH] make dummy __get_cpuid available on Windows --- Algorithms/IteratorBasedCRC32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/IteratorBasedCRC32.h b/Algorithms/IteratorBasedCRC32.h index dd693f831..ff1cf1f8f 100644 --- a/Algorithms/IteratorBasedCRC32.h +++ b/Algorithms/IteratorBasedCRC32.h @@ -115,7 +115,7 @@ class IteratorbasedCRC32 __get_cpuid(1, &eax, &ebx, &ecx, &edx); return ecx; } -#if defined(__MINGW64__) +#if defined(__MINGW64__) || defined(_MSC_VER) inline void __get_cpuid(int param, unsigned *eax, unsigned *ebx, unsigned *ecx, unsigned *edx) const { *ecx = 0;