diff options
author | Isaac Woods <isaacwoods.home@gmail.com> | 2018-10-01 21:55:16 +0100 |
---|---|---|
committer | Isaac Woods <isaacwoods.home@gmail.com> | 2018-10-04 10:46:55 +0100 |
commit | 90d86148b7a1847b4492e0c6fd892327400a0aba (patch) | |
tree | 9e9c99f0bc1416f73533f50ea98039e64634d288 /src/switch.rs | |
parent | 2926a5bb1eebc2e0da03c802336bfa3de15950f2 (diff) | |
download | rust-libc-90d86148b7a1847b4492e0c6fd892327400a0aba.tar.gz |
De-duplicate c_cvoid definitions
Diffstat (limited to 'src/switch.rs')
-rw-r--r-- | src/switch.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/switch.rs b/src/switch.rs index bb6df388e1..d47d41b108 100644 --- a/src/switch.rs +++ b/src/switch.rs @@ -34,21 +34,3 @@ pub type c_char = u8; pub type c_long = i64; pub type c_ulong = u64; pub type wchar_t = u32; - -cfg_if! { - if #[cfg(core_cvoid)] { - pub use core::ffi::c_void; - } else { - // Use repr(u8) as LLVM expects `void*` to be the same as `i8*` to help - // enable more optimization opportunities around it recognizing things - // like malloc/free. - #[repr(u8)] - pub enum c_void { - // Two dummy variants so the #[repr] attribute can be used. - #[doc(hidden)] - __variant1, - #[doc(hidden)] - __variant2, - } - } -} |