mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2024-12-23 19:31:30 +11:00
Make sure we handle *nix correctly
This commit is contained in:
parent
264a630c39
commit
20e1b228cd
|
@ -167,7 +167,11 @@ mod key_handler;
|
|||
use self::os::macos as imp;
|
||||
#[cfg(target_os = "windows")]
|
||||
use self::os::windows as imp;
|
||||
#[cfg(unix)]
|
||||
#[cfg(any(target_os="linux",
|
||||
target_os="freebsd",
|
||||
target_os="dragonfly",
|
||||
target_os="netbsd",
|
||||
target_os="openbsd"))]
|
||||
use self::os::unix as imp;
|
||||
|
||||
///
|
||||
|
|
|
@ -2,5 +2,9 @@
|
|||
pub mod macos;
|
||||
#[cfg(target_os = "windows")]
|
||||
pub mod windows;
|
||||
#[cfg(unix)]
|
||||
#[cfg(any(target_os="linux",
|
||||
target_os="freebsd",
|
||||
target_os="dragonfly",
|
||||
target_os="netbsd",
|
||||
target_os="openbsd"))]
|
||||
pub mod unix;
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#![cfg(unix)]
|
||||
#![cfg(any(target_os="linux",
|
||||
target_os="freebsd",
|
||||
target_os="dragonfly",
|
||||
target_os="netbsd",
|
||||
target_os="openbsd"))]
|
||||
|
||||
extern crate x11_dl;
|
||||
|
||||
|
|
Loading…
Reference in a new issue