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

Use c_void definition from libcore #160

Merged
merged 1 commit into from
Sep 1, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions src/c_types.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#![allow(non_camel_case_types)]

use core::ffi;

pub type c_int = i32;
pub type c_char = i8;
pub type c_long = i64;
Expand All @@ -13,12 +15,4 @@ pub type c_ushort = u16;
pub type c_schar = i8;
pub type c_size_t = usize;
pub type c_ssize_t = isize;

// See explanation in rust/src/libstd/os/raw.rs
#[repr(u8)]
pub enum c_void {
#[doc(hidden)]
__nothing_to_see_here,
#[doc(hidden)]
__move_along,
}
pub type c_void = ffi::c_void;