Skip to content
This repository was archived by the owner on Mar 7, 2021. It is now read-only.

Commit 5666680

Browse files
committed
Use c_void definition from libcore
1 parent b448661 commit 5666680

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/c_types.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#![allow(non_camel_case_types)]
22

3+
use core::ffi;
4+
35
pub type c_int = i32;
46
pub type c_char = i8;
57
pub type c_long = i64;
@@ -13,12 +15,4 @@ pub type c_ushort = u16;
1315
pub type c_schar = i8;
1416
pub type c_size_t = usize;
1517
pub type c_ssize_t = isize;
16-
17-
// See explanation in rust/src/libstd/os/raw.rs
18-
#[repr(u8)]
19-
pub enum c_void {
20-
#[doc(hidden)]
21-
__nothing_to_see_here,
22-
#[doc(hidden)]
23-
__move_along,
24-
}
18+
pub type c_void = ffi::c_void;

0 commit comments

Comments
 (0)