diff options
-rw-r--r-- | src/lib.rs | 4 | ||||
-rw-r--r-- | src/osx/mod.rs | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -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; |