From f19b559f6e1625fc156b58eaacffb079d38de9ff Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 25 Nov 2018 19:03:17 +0100 Subject: [PATCH] InitOnceExecuteOnce requires targeting Windows Vista. Cygwin fix. --- client/TracyProfiler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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