fix CpuId when compiling with clang on windows

This commit is contained in:
Techatrix 2024-07-19 01:47:46 +02:00
parent 93b4ea2ace
commit 90adf00dc1

View File

@ -308,7 +308,7 @@ struct ThreadHandleWrapper
static inline void CpuId( uint32_t* regs, uint32_t leaf )
{
memset(regs, 0, sizeof(uint32_t) * 4);
#if defined _WIN32
#if defined _MSC_VER
__cpuidex( (int*)regs, leaf, 0 );
#else
__get_cpuid( leaf, regs, regs+1, regs+2, regs+3 );