Merge pull request #48 from sburton84/master

diff --git a/src/lib.rs b/src/lib.rs
index 501cad6..b155f08 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -154,7 +154,7 @@
 }
 
 /// returns true if this is a tty
-#[cfg(target_arch = "wasm32")]
+#[cfg(any(target_arch = "wasm32", target_env = "sgx"))]
 pub fn is(_stream: Stream) -> bool {
     false
 }