Make it work on DragonFly/FreeBSD
Tested on DragonFly BSD. Should work similarily on FreeBSD.
This commit is contained in:
parent
b8b1b80631
commit
b707959c2c
12 changed files with 30 additions and 11 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#![cfg(target_os = "linux")]
|
||||
#![cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd"))]
|
||||
#![allow(dead_code)]
|
||||
|
||||
use libc;
|
||||
|
|
|
|||
|
|
@ -33,3 +33,5 @@ pub type EGLNativeWindowType = winapi::HWND;
|
|||
pub type EGLNativeWindowType = *const libc::c_void;
|
||||
#[cfg(target_os = "android")]
|
||||
pub type EGLNativeWindowType = *const libc::c_void;
|
||||
#[cfg(any(target_os = "dragonfly", target_os = "freebsd"))]
|
||||
pub type EGLNativeWindowType = *const libc::c_void;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
#![cfg(any(target_os = "windows", target_os = "linux", target_os = "android"))]
|
||||
#![cfg(any(target_os = "windows", target_os = "linux", target_os = "android",
|
||||
target_os = "dragonfly", target_os = "freebsd"))]
|
||||
#![allow(unused_variables)]
|
||||
|
||||
use BuilderAttribs;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#![cfg(all(target_os = "linux", feature = "window"))]
|
||||
#![cfg(all(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd"), feature = "window"))]
|
||||
|
||||
use BuilderAttribs;
|
||||
use ContextError;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#![cfg(any(target_os = "linux", target_os = "freebsd"))]
|
||||
#![cfg(any(target_os = "linux", target_os = "freebsd", target_os = "dragonfly"))]
|
||||
|
||||
extern crate osmesa_sys;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#![cfg(target_os = "linux")]
|
||||
#![cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd"))]
|
||||
#![allow(unused_variables, dead_code)]
|
||||
|
||||
use self::wayland::egl::{EGLSurface, is_egl_available};
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#![cfg(all(target_os = "linux", feature = "window"))]
|
||||
#![cfg(all(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd"), feature = "window"))]
|
||||
|
||||
pub use self::monitor::{MonitorID, get_available_monitors, get_primary_monitor};
|
||||
pub use self::window::{Window, XWindow, PollEventsIterator, WaitEventsIterator, Context, WindowProxy};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue