Fix locale_t in unix and fuchsia.

Closes #1055.
This commit is contained in:
gnzlbg 2019-05-24 13:49:11 +02:00
parent f775bea997
commit 5e2b0d88d4
2 changed files with 4 additions and 12 deletions

View File

@ -27,6 +27,8 @@ pub type c_ulonglong = u64;
pub type intmax_t = i64;
pub type uintmax_t = u64;
pub type locale_t = *mut ::c_void;
pub type size_t = usize;
pub type ptrdiff_t = isize;
pub type intptr_t = isize;
@ -110,12 +112,7 @@ impl ::Copy for DIR {}
impl ::Clone for DIR {
fn clone(&self) -> DIR { *self }
}
#[cfg_attr(feature = "extra_traits", derive(Debug))]
pub enum locale_t {}
impl ::Copy for locale_t {}
impl ::Clone for locale_t {
fn clone(&self) -> locale_t { *self }
}
#[cfg_attr(feature = "extra_traits", derive(Debug))]
pub enum fpos64_t {} // TODO: fill this out with a struct
impl ::Copy for fpos64_t {}

View File

@ -45,12 +45,7 @@ impl ::Copy for DIR {}
impl ::Clone for DIR {
fn clone(&self) -> DIR { *self }
}
#[cfg_attr(feature = "extra_traits", derive(Debug))]
pub enum locale_t {}
impl ::Copy for locale_t {}
impl ::Clone for locale_t {
fn clone(&self) -> locale_t { *self }
}
pub type locale_t = *mut :: c_void;
s! {
pub struct group {