aboutsummaryrefslogtreecommitdiff
path: root/include/cru/base/Osx.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/base/Osx.h')
-rw-r--r--include/cru/base/Osx.h9
1 files changed, 7 insertions, 2 deletions
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 <CoreFoundation/CoreFoundation.h>
namespace cru {
@@ -23,4 +25,7 @@ class CFWrapper {
return ref;
}
};
+
+CFWrapper<CFStringRef> ToCFStringRef(StringView string);
+String FromCFStringRef(CFStringRef string);
} // namespace cru