aboutsummaryrefslogtreecommitdiff
path: root/include/cru/common/platform/osx/Convert.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2024-06-24 00:06:25 +0800
committercrupest <crupest@outlook.com>2024-07-23 20:58:25 +0800
commitb756bf519cda0684ec46d0d9404cbc59741ec0cb (patch)
tree362f3f2a6bc93b786d7f70cdb6f879951910ed90 /include/cru/common/platform/osx/Convert.h
parentc13f21e59c6219a030f54887e93ed6ff23fce292 (diff)
downloadcru-b756bf519cda0684ec46d0d9404cbc59741ec0cb.tar.gz
cru-b756bf519cda0684ec46d0d9404cbc59741ec0cb.tar.bz2
cru-b756bf519cda0684ec46d0d9404cbc59741ec0cb.zip
refactor: use better precompile macro in platform headers.
NEED TEST: BufferStream, AutoReadStream, SubProcess.
Diffstat (limited to 'include/cru/common/platform/osx/Convert.h')
-rw-r--r--include/cru/common/platform/osx/Convert.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/cru/common/platform/osx/Convert.h b/include/cru/common/platform/osx/Convert.h
index 503576be..395cbbae 100644
--- a/include/cru/common/platform/osx/Convert.h
+++ b/include/cru/common/platform/osx/Convert.h
@@ -1,6 +1,9 @@
#pragma once
#include "../../PreConfig.h"
-#ifdef CRU_PLATFORM_OSX
+
+#ifndef CRU_PLATFORM_OSX
+#error "This file can only be included on osx."
+#endif
#include "../../String.h"
@@ -13,5 +16,3 @@ String Convert(CFStringRef string);
CFRange Convert(const Range& range);
Range Convert(const CFRange& range);
} // namespace cru::platform::osx
-
-#endif