vitasdk_sys/
lib.rs

1#![cfg_attr(docsrs, feature(doc_auto_cfg))]
2#![no_std]
3#![allow(
4    nonstandard_style,
5    clippy::useless_transmute,
6    clippy::missing_safety_doc,
7    clippy::too_many_arguments,
8    clippy::len_without_is_empty
9)]
10
11mod ctypes {
12    pub use ::core::ffi::c_void;
13
14    pub type c_char = i8;
15    pub type c_double = f64;
16    pub type c_float = f32;
17    pub type c_int = i32;
18    pub type c_long = i32;
19    pub type c_longlong = i64;
20    pub type c_schar = i8;
21    pub type c_short = i16;
22    pub type c_uchar = u8;
23    pub type c_uint = u32;
24    pub type c_ulong = u32;
25    pub type c_ulonglong = u64;
26    pub type c_ushort = u16;
27}
28
29pub use ctypes::*;
30
31#[cfg(any(not(feature = "bindgen"), docsrs))]
32include!("bindings.rs");
33
34#[cfg(all(feature = "bindgen", not(docsrs)))]
35include!(concat!(env!("OUT_DIR"), "/bindings.rs"));