diff --git a/goldlib/gall/gutlvers.cpp b/goldlib/gall/gutlvers.cpp index 3e2cf24..49c0833 100644 --- a/goldlib/gall/gutlvers.cpp +++ b/goldlib/gall/gutlvers.cpp @@ -31,7 +31,9 @@ #if defined(__WIN32__) #include +#if defined(_MSC_VER) && (_MSC_VER > 1200) #include +#endif #elif defined(__GNUC__) #include #endif @@ -48,6 +50,26 @@ #define _MAX_MNAME_LEN 30 +// ------------------------------------------------------------------ + +#if defined(_MSC_VER) && (_MSC_VER <= 1200) +static void __cpuid(int CPUInfo[4], int cpuidfun) +{ + __asm + { + mov eax, cpuidfun + cpuid + + mov esi, CPUInfo + mov [esi + 0], eax + mov [esi + 4], ebx + mov [esi + 8], ecx + mov [esi + 12], edx + } +} +#endif + + // ------------------------------------------------------------------ inline static bool HaveCPUID()