From 90adf00dc145468239e3ec14aed7fcbe73be7b89 Mon Sep 17 00:00:00 2001 From: Techatrix Date: Fri, 19 Jul 2024 01:47:46 +0200 Subject: [PATCH] fix CpuId when compiling with clang on windows --- public/client/TracyProfiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/client/TracyProfiler.cpp b/public/client/TracyProfiler.cpp index 593978d3..9ef87054 100644 --- a/public/client/TracyProfiler.cpp +++ b/public/client/TracyProfiler.cpp @@ -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 );