diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-08-16 19:49:28 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-08-16 19:49:28 +0800 |
| commit | 63807c3064002ec75b48c444a767e396c273f403 (patch) | |
| tree | a8d88af8da954c9a72dfc73b5fad4f4b757ffedb /include/cru/base/Osx.h | |
| parent | 600307d3d0133accc3aaceed694e897ad48cd584 (diff) | |
| download | cru-63807c3064002ec75b48c444a767e396c273f403.tar.gz cru-63807c3064002ec75b48c444a767e396c273f403.tar.bz2 cru-63807c3064002ec75b48c444a767e396c273f403.zip | |
Fix compiling error of name conflict.
Diffstat (limited to 'include/cru/base/Osx.h')
| -rw-r--r-- | include/cru/base/Osx.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/cru/base/Osx.h b/include/cru/base/Osx.h index 057302c2..6c6d5109 100644 --- a/include/cru/base/Osx.h +++ b/include/cru/base/Osx.h @@ -1,9 +1,12 @@ #pragma once +// TODO: Move This file to platform dir. + #ifndef __APPLE__ #error "This header can only be included on OSX platforms." #endif +#include "Range.h" #include "String.h" #include <CoreFoundation/CoreFoundation.h> @@ -26,6 +29,10 @@ class CFWrapper { } }; +// TODO: Remove "Ref" in name. CFWrapper<CFStringRef> ToCFStringRef(StringView string); String FromCFStringRef(CFStringRef string); + +CFRange ToCFRange(const Range& range); +Range FromCFRange(const CFRange& range); } // namespace cru |
