Skip to content

Commit

Permalink
apple: add cfgs for tvos/watchos/visionos
Browse files Browse the repository at this point in the history
  • Loading branch information
nagisa committed Jun 8, 2024
1 parent dc8664f commit cd30ba3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/os/unix/consts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ mod posix {

target_os = "macos",
target_os = "ios",
target_os = "tvos",
target_os = "visionos",
target_os = "watchos",

target_os = "freebsd",
target_os = "dragonfly",
target_os = "openbsd",
Expand Down Expand Up @@ -103,6 +107,10 @@ mod posix {

target_os = "macos",
target_os = "ios",
target_os = "tvos",
target_os = "visionos",
target_os = "watchos",

target_os = "freebsd",
target_os = "dragonfly",
target_os = "openbsd",
Expand Down Expand Up @@ -147,6 +155,9 @@ mod posix {
} else if #[cfg(any(
target_os = "macos",
target_os = "ios",
target_os = "tvos",
target_os = "visionos",
target_os = "watchos",
))] {
pub(super) const RTLD_GLOBAL: c_int = 8;
} else if #[cfg(any(
Expand Down Expand Up @@ -188,6 +199,9 @@ mod posix {
} else if #[cfg(any(
target_os = "macos",
target_os = "ios",
target_os = "tvos",
target_os = "visionos",
target_os = "watchos",
))] {
pub(super) const RTLD_LOCAL: c_int = 4;
} else if #[cfg(any(
Expand Down

0 comments on commit cd30ba3

Please sign in to comment.