mirror of
https://github.com/odin-lang/Odin.git
synced 2026-08-28 07:51:33 +00:00
Merge pull request #7424 from samuelgozi/foundation-cocoa-ios
core:sys/darwin/Foundation: Skip Cocoa import on iOS
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
package objc_Foundation
|
||||
|
||||
foreign import "system:Foundation.framework"
|
||||
// NOTE: Most of our bindings are reliant on Cocoa (everything under appkit) so just unconditionally import it
|
||||
@(require) foreign import "system:Cocoa.framework"
|
||||
when !ODIN_PLATFORM_SUBTARGET_IOS {
|
||||
// Most macOS bindings rely on Cocoa through AppKit.
|
||||
@(require) foreign import "system:Cocoa.framework"
|
||||
}
|
||||
|
||||
import "base:intrinsics"
|
||||
import "core:c"
|
||||
|
||||
Reference in New Issue
Block a user