Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #[cfg(feature = "stdint_h")]
- use std::os::raw::{c_short, c_int, c_long, c_longlong};
- #[cfg(feature = "inttypes_h")]
- use std::os::raw::{c_ushort, c_uint, c_ulong, c_ulonglong};
- #[cfg(not(any(feature = "stdint_h", feature = "inttypes_h")))]
- #[cfg(not(feature = "mach"))]
- #[cfg(not(feature = "freebsd"))]
- #[cfg(not(feature = "sn_target_ps2"))]
- #[cfg(not(any(feature = "win32", feature = "gnu")))]
- mod types {
- pub type int16_t = c_short;
- pub type uint16_t = c_ushort;
- pub type int32_t = c_int;
- pub type uint32_t = c_uint;
- pub type int64_t = c_longlong;
- pub type uint64_t = c_ulonglong;
- }
- #[cfg(feature = "mach")]
- mod types {
- pub type uint16_t = u16;
- pub type uint32_t = u32;
- }
- #[cfg(feature = "freebsd")]
- use std::os::raw::{int16_t, uint16_t, int32_t, uint32_t, int64_t, uint64_t};
- #[cfg(feature = "sn_target_ps2")]
- use std::os::raw::{int16_t, uint16_t, int32_t, uint32_t};
- #[cfg(any(feature = "win32", feature = "gnu"))]
- use std::os::raw::{int16_t, uint16_t, int32_t, uint32_t, int64_t, uint64_t};
- #[cfg(feature = "stdint_h")]
- pub type int16_t = c_short;
- #[cfg(feature = "stdint_h")]
- pub type uint16_t = c_ushort;
- #[cfg(feature = "stdint_h")]
- pub type int32_t = c_int;
- #[cfg(feature = "stdint_h")]
- pub type uint32_t = c_uint;
- #[cfg(feature = "stdint_h")]
- pub type int64_t = c_longlong;
- #[cfg(feature = "stdint_h")]
- pub type uint64_t = c_ulonglong;
- #[cfg(feature = "inttypes_h")]
- pub type int16_t = c_short;
- #[cfg(feature = "inttypes_h")]
- pub type uint16_t = c_ushort;
- #[cfg(feature = "inttypes_h")]
- pub type int32_t = c_int;
- #[cfg(feature = "inttypes_h")]
- pub type uint32_t = c_uint;
- #[cfg(feature = "inttypes_h")]
- pub type int64_t = c_longlong;
- #[cfg(feature = "inttypes_h")]
- pub type uint64_t = c_ulonglong;
- #[cfg(feature = "mach")]
- pub type uint16_t = u16;
- #[cfg(feature = "mach")]
- pub type uint32_t = u32;
- #[cfg(feature = "win32")]
- pub type int64_t = c_longlong;
- #[cfg(feature = "win32")]
- pub type uint64_t = c_ulonglong;
- #[cfg(feature = "gnu")]
- pub type int64_t = c_longlong;
- #[cfg(feature = "gnu")]
- pub type uint64_t = c_ulonglong;
- #[cfg(any(feature = "stdint_h", feature = "inttypes_h"))]
- pub const HAVE_STDINT_H: bool = true;
- #[cfg(not(any(feature = "stdint_h", feature = "inttypes_h")))]
- pub const HAVE_STDINT_H: bool = false;
- #[cfg(any(feature = "win64", feature = "lp64"))]
- #[cfg(not(feature = "__64BIT__"))]
- pub const __64BIT__: bool = true;
- #[cfg(not(any(feature = "win64", feature = "lp64")))]
- pub const __64BIT__: bool = false;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement