From cb2095967982083aad9ad0aa9e5f0794450d5edd Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Fri, 18 Apr 2025 15:49:29 -0500 Subject: [PATCH] Common/Timer: Change HANDLE to void* to avoid including Windows.h to fix cmake build. --- Source/Core/Common/Timer.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Source/Core/Common/Timer.h b/Source/Core/Common/Timer.h index 7f36308e78..d49a599015 100644 --- a/Source/Core/Common/Timer.h +++ b/Source/Core/Common/Timer.h @@ -5,10 +5,6 @@ #include "Common/CommonTypes.h" -#ifdef _WIN32 -#include -#endif - namespace Common { class Timer @@ -49,7 +45,8 @@ public: private: #ifdef _WIN32 - HANDLE m_timer_handle; + // Using void* to avoid including Windows.h in this header just for HANDLE. + void* m_timer_handle; #endif };