make dummy __get_cpuid available on Windows

This commit is contained in:
Dennis Luxen 2014-08-13 12:32:12 +02:00
parent 5dbda8f519
commit 18915ae2bd

View File

@ -115,7 +115,7 @@ class IteratorbasedCRC32
__get_cpuid(1, &eax, &ebx, &ecx, &edx); __get_cpuid(1, &eax, &ebx, &ecx, &edx);
return ecx; 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 inline void __get_cpuid(int param, unsigned *eax, unsigned *ebx, unsigned *ecx, unsigned *edx) const
{ {
*ecx = 0; *ecx = 0;