From a1ce5fc1f6fc101d002785a0534bf0dbf6fa0884 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 10 Jul 2019 02:09:19 +0200 Subject: [PATCH] Add include for built-in __get_cpuid() on gcc/clang. --- client/TracyProfiler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 730ed698..1f5cc916 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -89,6 +89,10 @@ extern "C" typedef LONG (WINAPI *t_RtlGetVersion)( PRTL_OSVERSIONINFOW ); # include #endif +#if !defined _WIN32 && !defined __CYGWIN__ && ( defined __i386 || defined _M_IX86 || defined __x86_64__ || defined _M_X64 ) +# include +#endif + namespace tracy {