Added @link attribute.

This commit is contained in:
Christoffer Lerno
2024-03-11 18:10:40 +01:00
parent 546754e803
commit a0309855d7
17 changed files with 224 additions and 183 deletions

View File

@@ -1,4 +1,4 @@
module std::os::macos::cf @if(env::DARWIN);
module std::os::macos::cf @if(env::DARWIN) @link(env::DARWIN, "CoreFoundation.framework");
distinct CFTypeRef = void*;
def CFIndex = isz;
@@ -8,5 +8,5 @@ struct CFRange
CFIndex length;
}
extern fn CFTypeRef _macos_CFRetain(CFTypeRef cf) @extern("CFRetain");
extern fn void _macos_CFRelease(CFTypeRef cf) @extern("CFRelease");
extern fn CFTypeRef macos_CFRetain(CFTypeRef cf) @extern("CFRetain") @builtin;
extern fn void macos_CFRelease(CFTypeRef cf) @extern("CFRelease") @builtin;