aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2014-08-03 18:30:31 +0200
committerFelix S. Klock II <pnkfelix@pnkfx.org>2014-08-03 18:30:31 +0200
commitf1993be9eae49ad9a1d5e8e8d2b3749ad4379a70 (patch)
tree84344e1c9c1008a8dffd0ca7af96574901a2933d
parentd574f6f1bbcdcc93649fe9daa18106a3cae61ef6 (diff)
downloadglutin-f1993be9eae49ad9a1d5e8e8d2b3749ad4379a70.tar.gz
glutin-f1993be9eae49ad9a1d5e8e8d2b3749ad4379a70.zip
Fix bugs from f4fb699b524
-rw-r--r--src/lib.rs4
-rw-r--r--src/osx/mod.rs2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index ee79fd9..60ce0aa 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -23,8 +23,10 @@ pub use events::*;
#[cfg(windows)]
use winimpl = win32;
-#[cfg(unix)]
+#[cfg(target_os = "linux")]
use winimpl = x11;
+#[cfg(target_os = "macos")]
+use winimpl = osx;
#[cfg(target_os = "win32")]
mod win32;
diff --git a/src/osx/mod.rs b/src/osx/mod.rs
index dcf714b..f846cf4 100644
--- a/src/osx/mod.rs
+++ b/src/osx/mod.rs
@@ -1,6 +1,6 @@
//! Dummy implementation for OS/X to make gl-init-rs compile on this platform
-use WindowBuilder;
+use {Event, WindowBuilder};
pub struct Window;