From 600307d3d0133accc3aaceed694e897ad48cd584 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Sat, 16 Aug 2025 19:24:11 +0800 Subject: Move Core Foundation string out of cru String. Still error. --- include/cru/base/Osx.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'include/cru/base/Osx.h') diff --git a/include/cru/base/Osx.h b/include/cru/base/Osx.h index 711da9a3..057302c2 100644 --- a/include/cru/base/Osx.h +++ b/include/cru/base/Osx.h @@ -1,9 +1,11 @@ #pragma once -#ifndef CRU_PLATFORM_OSX -#error "This header can only be included on OSX." +#ifndef __APPLE__ +#error "This header can only be included on OSX platforms." #endif +#include "String.h" + #include namespace cru { @@ -23,4 +25,7 @@ class CFWrapper { return ref; } }; + +CFWrapper ToCFStringRef(StringView string); +String FromCFStringRef(CFStringRef string); } // namespace cru -- cgit v1.2.3