Skip to content

Commit 18b300a

Browse files
author
Jethro Beekman
committed
Add SGX target
1 parent 631e268 commit 18b300a

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
@@ -199,6 +199,9 @@ cfg_if! {
199199
} else if #[cfg(unix)] {
200200
mod unix;
201201
pub use unix::*;
202+
} else if #[cfg(target_env = "sgx")] {
203+
mod sgx;
204+
pub use sgx::*;
202205
} else {
203206
// Unknown target_family
204207
}

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)