mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2025-01-11 19:41:32 +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;
|
use self::os::macos as imp;
|
||||||
#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
use self::os::windows as imp;
|
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;
|
use self::os::unix as imp;
|
||||||
|
|
||||||
///
|
///
|
||||||
|
|
|
@ -2,5 +2,9 @@
|
||||||
pub mod macos;
|
pub mod macos;
|
||||||
#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
pub mod 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;
|
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;
|
extern crate x11_dl;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue