diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-08-30 14:35:47 +0200 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-08-30 14:35:47 +0200 |
commit | 9d6d2412c7fc7c26574e91a8dc981eaecaa49542 (patch) | |
tree | bd9b70c965bd0edbf2a96c1be7ecc4c440488c87 /src/api/egl | |
parent | b8b1b80631e1335a7ab747f34e1c67dfa0790a10 (diff) | |
parent | b707959c2c0ae97c2225c2e6dbc07fc754125458 (diff) | |
download | glutin-9d6d2412c7fc7c26574e91a8dc981eaecaa49542.tar.gz glutin-9d6d2412c7fc7c26574e91a8dc981eaecaa49542.zip |
Merge pull request #589 from mneumann/dragonfly2
Make it work on DragonFly/FreeBSD
Diffstat (limited to 'src/api/egl')
-rw-r--r-- | src/api/egl/ffi.rs | 2 | ||||
-rw-r--r-- | src/api/egl/mod.rs | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/api/egl/ffi.rs b/src/api/egl/ffi.rs index 6a81ada..ae02e30 100644 --- a/src/api/egl/ffi.rs +++ b/src/api/egl/ffi.rs @@ -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; diff --git a/src/api/egl/mod.rs b/src/api/egl/mod.rs index 32902e5..4cd7a7c 100644 --- a/src/api/egl/mod.rs +++ b/src/api/egl/mod.rs @@ -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; |