1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Fix multiple build errors when compiling with MinGW.

This commit is contained in:
Rokas Kupstys
2019-08-04 12:00:38 +03:00
parent eed7039853
commit b391e4c21a
6 changed files with 26 additions and 2 deletions
+1 -1
View File
@@ -235,7 +235,7 @@ static int64_t SetupHwTimer()
#elif defined TRACY_HW_TIMER && ( defined __i386 || defined _M_IX86 || defined __x86_64__ || defined _M_X64 )
static inline void CpuId( uint32_t* regs, uint32_t leaf )
{
#if defined _MSC_VER || defined __CYGWIN__
#if defined _WIN32 || defined __CYGWIN__
__cpuidex( (int*)regs, leaf, 0 );
#else
__get_cpuid( leaf, regs, regs+1, regs+2, regs+3 );