From ccf48eb93a101ba2412497ad5f3966e4f31d2178 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 7 Nov 2025 00:11:38 +0800 Subject: Win Resource.h to Base.h. --- include/cru/base/platform/win/ComAutoInit.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'include/cru/base/platform/win/ComAutoInit.h') diff --git a/include/cru/base/platform/win/ComAutoInit.h b/include/cru/base/platform/win/ComAutoInit.h index cef819a5..524cd026 100644 --- a/include/cru/base/platform/win/ComAutoInit.h +++ b/include/cru/base/platform/win/ComAutoInit.h @@ -1,9 +1,10 @@ #pragma once -#ifdef CRU_PLATFORM_WINDOWS +#ifndef _WIN32 +#error "This file can only be included on Windows." +#endif -#include "WinPreConfig.h" -#include "cru/base/Base.h" +#include "Base.h" namespace cru::platform::win { class CRU_BASE_API ComAutoInit { @@ -16,5 +17,3 @@ class CRU_BASE_API ComAutoInit { ~ComAutoInit(); }; } // namespace cru::platform::win - -#endif -- cgit v1.2.3