diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-04-26 08:02:19 +0200 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-04-26 08:02:19 +0200 |
commit | 8cbd57a307392e5ccb48905f3fc7b1e66cd3384a (patch) | |
tree | ab8ffec55c47ba2e5cd9a2c7895773e840d6e213 /src/api/egl/ffi.rs | |
parent | 9a0ca92692b0d5c60e89dbdc18cafb5c468e75b0 (diff) | |
parent | 0417f7003f133fbef63e8e9d98d305368b1eed47 (diff) | |
download | glutin-8cbd57a307392e5ccb48905f3fc7b1e66cd3384a.tar.gz glutin-8cbd57a307392e5ccb48905f3fc7b1e66cd3384a.zip |
Merge pull request #399 from tomaka/egl-linux
Allow using EGL with X11
Diffstat (limited to 'src/api/egl/ffi.rs')
-rw-r--r-- | src/api/egl/ffi.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/api/egl/ffi.rs b/src/api/egl/ffi.rs index e3cf32e..8e2528d 100644 --- a/src/api/egl/ffi.rs +++ b/src/api/egl/ffi.rs @@ -2,8 +2,6 @@ use libc; #[cfg(target_os = "windows")] extern crate winapi; -#[cfg(target_os = "linux")] -use api::x11::ffi; #[cfg(target_os = "android")] use api::android::ffi; @@ -32,10 +30,6 @@ pub type EGLNativePixmapType = *const libc::c_void; // FIXME: egl_native_pix #[cfg(target_os = "windows")] pub type EGLNativeWindowType = winapi::HWND; #[cfg(target_os = "linux")] -pub type EGLNativeWindowType = ffi::Window; +pub type EGLNativeWindowType = *const libc::c_void; #[cfg(target_os = "android")] pub type EGLNativeWindowType = *const ffi::ANativeWindow; - -#[cfg(not(target_os = "windows"))] -#[link(name = "EGL")] -extern {} |