mirror of
https://github.com/apple/swift-system
synced 2026-11-22 04:30:46 +00:00
18 lines
645 B
Plaintext
18 lines
645 B
Plaintext
// System imports CSystem with `internal import`. Don't include a header that
|
|
// the platform's C module also includes: CSystem would then co-own its
|
|
// declarations, so Swift would limit them to CSystem's import access level and
|
|
// could credit their members to CSystem under MemberImportVisibility.
|
|
// (CSystemWASI.h still does; see Constants.swift.)
|
|
module CSystem {
|
|
header "CSystemShared.h"
|
|
header "CSystemLinux.h"
|
|
header "CSystemWASI.h"
|
|
export *
|
|
}
|
|
|
|
// IORing's inlinable code stores these types, so System imports this module
|
|
// with `public import`. Keep libc headers out of it too.
|
|
module CSystemIOUring {
|
|
header "io_uring.h"
|
|
}
|