Skip to content

Commit 3b5ab65

Browse files
author
Jethro Beekman
committed
Add SGX target
1 parent 7125d2e commit 3b5ab65

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ cfg_if! {
200200
} else if #[cfg(unix)] {
201201
mod unix;
202202
pub use unix::*;
203+
} else if #[cfg(target_env = "sgx")] {
204+
mod sgx;
205+
pub use sgx::*;
203206
} else {
204207
// Unknown target_family
205208
}

src/sgx.rs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pub type c_char = i8;
2+
pub type c_long = i64;
3+
pub type c_ulong = u64;

0 commit comments

Comments
 (0)