Skip to content

Commit 27d4a94

Browse files
committed
Merge pull request rust-lang#183 from antonblanchard/powerpc64_merge2
PowerPC64 fixes
2 parents 1179ac7 + 9e1a38e commit 27d4a94

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

src/unix/notbsd/linux/mod.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,9 @@ s! {
8484
}
8585

8686
pub struct pthread_mutexattr_t {
87-
#[cfg(any(target_arch = "x86_64", target_arch = "powerpc64",
88-
target_arch = "powerpc64le"))]
87+
#[cfg(any(target_arch = "x86_64", target_arch = "powerpc64"))]
8988
__align: [::c_int; 0],
90-
#[cfg(not(any(target_arch = "x86_64", target_arch = "powerpc64",
91-
target_arch = "powerpc64le")))]
89+
#[cfg(not(any(target_arch = "x86_64", target_arch = "powerpc64")))]
9290
__align: [::c_long; 0],
9391
size: [u8; __SIZEOF_PTHREAD_MUTEXATTR_T],
9492
}

src/unix/notbsd/linux/other/b64/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ cfg_if! {
2222
if #[cfg(target_arch = "aarch64")] {
2323
mod aarch64;
2424
pub use self::aarch64::*;
25-
} else if #[cfg(any(target_arch = "powerpc64", target_arch = "powerpc64le"))] {
25+
} else if #[cfg(any(target_arch = "powerpc64"))] {
2626
mod powerpc64;
2727
pub use self::powerpc64::*;
2828
} else {

src/unix/notbsd/linux/other/b64/powerpc64.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! PowerPC64-specific definitions for 64-bit linux-like values
22
33
pub type c_char = u8;
4-
pub type wchar_t = u32;
4+
pub type wchar_t = i32;
55
pub type nlink_t = u64;
66
pub type blksize_t = i64;
77

src/unix/notbsd/linux/other/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,7 @@ cfg_if! {
454454
pub use self::b32::*;
455455
} else if #[cfg(any(target_arch = "x86_64",
456456
target_arch = "aarch64",
457-
target_arch = "powerpc64",
458-
target_arch = "powerpc64le"))] {
457+
target_arch = "powerpc64"))] {
459458
mod b64;
460459
pub use self::b64::*;
461460
} else {

0 commit comments

Comments
 (0)