Skip to content

Commit

Permalink
Do not re-export c_void in target-specific code
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Dec 17, 2024
1 parent 39a6799 commit c389c30
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/teeos/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]

// only supported on Rust > 1.59, so we can directly reexport c_void from core.
pub use core::ffi::c_void;

use crate::prelude::*;

pub type c_schar = i8;
Expand Down
2 changes: 1 addition & 1 deletion src/trusty.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub use core::ffi::c_void;
use crate::prelude::*;

pub type size_t = usize;
pub type ssize_t = isize;
Expand Down

0 comments on commit c389c30

Please sign in to comment.