forked from M-Labs/artiq
1
0
Fork 0

libc: add minimal C types

This commit is contained in:
occheung 2021-08-06 10:51:13 +08:00
parent daaf6c3401
commit ad3037d0f6
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,5 @@
[package]
name = "libc"
version = "0.1.0"
authors = ["M-Labs"]
edition = "2018"

View File

@ -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;