rust/physfs-rs/src/primitives.rs
changeset 14456 a1613788130d
equal deleted inserted replaced
14455:632dfc73cf83 14456:a1613788130d
       
     1 #![allow(non_camel_case_types)]
       
     2 
       
     3 pub type PHYSFS_uint8  = ::libc::c_uchar;
       
     4 pub type PHYSFS_sint8  = ::libc::c_char;
       
     5 pub type PHYSFS_uint16 = ::libc::c_ushort;
       
     6 pub type PHYSFS_sint16 = ::libc::c_short;
       
     7 pub type PHYSFS_uint32 = ::libc::c_uint;
       
     8 pub type PHYSFS_sint32 = ::libc::c_int;
       
     9 
       
    10 #[cfg(target_pointer_width = "64")]
       
    11 pub type PHYSFS_uint64 = ::libc::c_ulonglong;
       
    12 #[cfg(target_pointer_width = "64")]
       
    13 pub type PHYSFS_sint64 = ::libc::c_longlong;
       
    14 
       
    15 // PhysFS defines the 64-bit types to 32 bits on 32-bit systems.
       
    16 #[cfg(target_pointer_width = "32")]
       
    17 pub type PHYSFS_uint64 = ::libc::c_uint;
       
    18 #[cfg(target_pointer_width = "32")]
       
    19 pub type PHYSFS_sint64 = ::libc::c_int;