#![stable(feature = "raw_os", since = "1.1.0")]
-#[cfg(target_arch = "aarch64")]
+#[cfg(any(target_os = "android",
+ all(target_os = "linux", any(target_arch = "aarch64",
+ target_arch = "arm"))))]
#[stable(feature = "raw_os", since = "1.1.0")] pub type c_char = u8;
-#[cfg(not(target_arch = "aarch64"))]
+#[cfg(not(any(target_os = "android",
+ all(target_os = "linux", any(target_arch = "aarch64",
+ target_arch = "arm")))))]
#[stable(feature = "raw_os", since = "1.1.0")] pub type c_char = i8;
#[stable(feature = "raw_os", since = "1.1.0")] pub type c_schar = i8;
#[stable(feature = "raw_os", since = "1.1.0")] pub type c_uchar = u8;
#[repr(u8)]
#[stable(feature = "raw_os", since = "1.1.0")]
pub enum c_void {
- #[unstable(feature = "c_void_variant", reason = "should not have to exist")]
+ #[unstable(feature = "c_void_variant", reason = "should not have to exist",
+ issue = "0")]
#[doc(hidden)] __variant1,
- #[unstable(feature = "c_void_variant", reason = "should not have to exist")]
+ #[unstable(feature = "c_void_variant", reason = "should not have to exist",
+ issue = "0")]
#[doc(hidden)] __variant2,
}
c_longlong c_ulonglong c_float c_double);
}
- #[cfg(unix)]
+ #[cfg(all(unix, not(target_os = "android")))]
+ #[test]
fn unix() {
{
use os::unix::raw;
}
#[cfg(windows)]
+ #[test]
fn windows() {
use os::windows::raw;
}