From 37799dc3ce6137066f3fd02658f0b28eb6523590 Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 29 Sep 2024 23:02:35 +0200 Subject: [PATCH] pipeline: Try to fix Windows compilation issue --- panda/src/pipeline/threadWin32Impl.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/panda/src/pipeline/threadWin32Impl.cxx b/panda/src/pipeline/threadWin32Impl.cxx index 588704d225..e8a10b78d5 100644 --- a/panda/src/pipeline/threadWin32Impl.cxx +++ b/panda/src/pipeline/threadWin32Impl.cxx @@ -25,6 +25,10 @@ static thread_local Thread *_current_thread = nullptr; static patomic_flag _main_thread_known = ATOMIC_FLAG_INIT; +#ifndef CREATE_WAITABLE_TIMER_HIGH_RESOLUTION +#define CREATE_WAITABLE_TIMER_HIGH_RESOLUTION 0x00000002 +#endif + #if _WIN32_WINNT < 0x0601 // Requires Windows 7. static DWORD (__stdcall *EnableThreadProfiling)(HANDLE, DWORD, DWORD64, HANDLE *) = nullptr;