diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 5740d4e0..aa342a5f 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -56,7 +56,9 @@ #if defined _MSC_VER || defined __CYGWIN__ # include extern "C" typedef LONG (WINAPI *t_RtlGetVersion)( PRTL_OSVERSIONINFOW ); -# define TRACY_USE_INIT_ONCE +# if _WIN32_WINNT >= _WIN32_WINNT_VISTA +# define TRACY_USE_INIT_ONCE +# endif #else # include # include