mirror of https://github.com/m-labs/artiq.git
libc: add minimal C types
This commit is contained in:
parent
daaf6c3401
commit
ad3037d0f6
|
@ -0,0 +1,5 @@
|
||||||
|
[package]
|
||||||
|
name = "libc"
|
||||||
|
version = "0.1.0"
|
||||||
|
authors = ["M-Labs"]
|
||||||
|
edition = "2018"
|
|
@ -0,0 +1,8 @@
|
||||||
|
// Helper crate for dealing with c ffi
|
||||||
|
#![allow(non_camel_case_types)]
|
||||||
|
#![no_std]
|
||||||
|
pub type c_char = i8;
|
||||||
|
pub type c_int = i32;
|
||||||
|
pub type size_t = usize;
|
||||||
|
pub type uintptr_t = usize;
|
||||||
|
pub type c_void = core::ffi::c_void;
|
Loading…
Reference in New Issue