aboutsummaryrefslogtreecommitdiff
path: root/include/cru/base/platform/win/StreamConvert.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/StreamConvert.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/StreamConvert.h')
-rw-r--r--include/cru/base/platform/win/StreamConvert.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/cru/base/platform/win/StreamConvert.h b/include/cru/base/platform/win/StreamConvert.h
index 17552c31..085e94e6 100644
--- a/include/cru/base/platform/win/StreamConvert.h
+++ b/include/cru/base/platform/win/StreamConvert.h
@@ -1,6 +1,8 @@
#pragma once
-#ifdef CRU_PLATFORM_WINDOWS
+#ifndef _WIN32
+#error "This file can only be included on Windows."
+#endif
#include "../../io/Stream.h"
@@ -9,5 +11,3 @@
namespace cru::platform::win {
CRU_BASE_API IStream* ConvertStreamToComStream(io::Stream* stream);
}
-
-#endif