Skip to content

Commit 2818ed1

Browse files
committed
Swapped to visionOS target_os
1 parent 06bda59 commit 2818ed1

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const ALLOWED_CFGS: &'static [&'static str] = &[
2222

2323
// Extra values to allow for check-cfg.
2424
const CHECK_CFG_EXTRA: &'static [(&'static str, &'static [&'static str])] = &[
25-
("target_os", &["switch", "aix", "ohos", "hurd", "xros"]),
25+
("target_os", &["switch", "aix", "ohos", "hurd", "visionos"]),
2626
("target_env", &["illumos", "wasi", "aix", "ohos"]),
2727
(
2828
"target_arch",

src/unix/bsd/apple/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6242,7 +6242,7 @@ cfg_if! {
62426242
}
62436243
}
62446244
cfg_if! {
6245-
if #[cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "xros"))] {
6245+
if #[cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "visionos"))] {
62466246
extern "C" {
62476247
pub fn memmem(
62486248
haystack: *const ::c_void,

src/unix/bsd/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ s! {
3939
target_os = "ios",
4040
target_os = "tvos",
4141
target_os = "watchos",
42-
target_os = "xros",
42+
target_os = "visionos",
4343
target_os = "netbsd",
4444
target_os = "openbsd")))]
4545
pub pw_fields: ::c_int,
@@ -925,7 +925,7 @@ cfg_if! {
925925
}
926926

927927
cfg_if! {
928-
if #[cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "watchos", target_os = "xros"))] {
928+
if #[cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "watchos", target_os = "visionos"))] {
929929
mod apple;
930930
pub use self::apple::*;
931931
} else if #[cfg(any(target_os = "openbsd", target_os = "netbsd"))] {

src/unix/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ cfg_if! {
369369
target_os = "ios",
370370
target_os = "tvos",
371371
target_os = "watchos",
372-
target_os = "xros",
372+
target_os = "visionos",
373373
target_os = "android",
374374
target_os = "openbsd",
375375
target_os = "nto",
@@ -1020,7 +1020,7 @@ extern "C" {
10201020
target_os = "ios",
10211021
target_os = "tvos",
10221022
target_os = "watchos",
1023-
target_os = "xros"
1023+
target_os = "visionos"
10241024
),
10251025
link_name = "realpath$DARWIN_EXTSN"
10261026
)]
@@ -1189,7 +1189,7 @@ extern "C" {
11891189
target_os = "ios",
11901190
target_os = "tvos",
11911191
target_os = "watchos",
1192-
target_os = "xros"
1192+
target_os = "visionos"
11931193
),
11941194
link_name = "res_9_init"
11951195
)]
@@ -1526,7 +1526,7 @@ cfg_if! {
15261526
target_os = "ios",
15271527
target_os = "tvos",
15281528
target_os = "watchos",
1529-
target_os = "xros",
1529+
target_os = "visionos",
15301530
target_os = "freebsd",
15311531
target_os = "dragonfly",
15321532
target_os = "openbsd",

0 commit comments

Comments
 (0)