aboutsummaryrefslogtreecommitdiff
path: root/include/cru/base/platform/win/ComAutoInit.h
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-11-07 00:11:38 +0800
committerYuqian Yang <crupest@crupest.life>2025-11-07 00:15:26 +0800
commitccf48eb93a101ba2412497ad5f3966e4f31d2178 (patch)
tree00911e33af6797dcbf897d125d11e44bf596b187 /include/cru/base/platform/win/ComAutoInit.h
parentebb83c66e225375212f8e82e6b1bd8d3e3eb8646 (diff)
downloadcru-ccf48eb93a101ba2412497ad5f3966e4f31d2178.tar.gz
cru-ccf48eb93a101ba2412497ad5f3966e4f31d2178.tar.bz2
cru-ccf48eb93a101ba2412497ad5f3966e4f31d2178.zip
Win Resource.h to Base.h.
Diffstat (limited to 'include/cru/base/platform/win/ComAutoInit.h')
-rw-r--r--include/cru/base/platform/win/ComAutoInit.h9
1 files changed, 4 insertions, 5 deletions
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