aboutsummaryrefslogtreecommitdiffstats
path: root/src/api
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-12-01 09:13:24 +0100
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-12-01 09:13:24 +0100
commit816fbb2165e3d2f5656a3afa9d9553551c0c6b68 (patch)
treead1cd324f08dc78d95225d3a49ce0c54fdb928f9 /src/api
parent24d9a705334e0fc72e4c78023b837d2df9411919 (diff)
downloadglutin-816fbb2165e3d2f5656a3afa9d9553551c0c6b68.tar.gz
glutin-816fbb2165e3d2f5656a3afa9d9553551c0c6b68.zip
Fix the windows build
Diffstat (limited to 'src/api')
-rw-r--r--src/api/wgl/make_current_guard.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/api/wgl/make_current_guard.rs b/src/api/wgl/make_current_guard.rs
index b890c82..83e35b2 100644
--- a/src/api/wgl/make_current_guard.rs
+++ b/src/api/wgl/make_current_guard.rs
@@ -1,7 +1,7 @@
use std::marker::PhantomData;
+use std::os::raw::c_void;
use std::io;
-use libc;
use winapi;
use CreationError;
@@ -40,8 +40,8 @@ impl<'a, 'b> CurrentContextGuard<'a, 'b> {
impl<'a, 'b> Drop for CurrentContextGuard<'a, 'b> {
fn drop(&mut self) {
unsafe {
- gl::wgl::MakeCurrent(self.previous_hdc as *const libc::c_void,
- self.previous_hglrc as *const libc::c_void);
+ gl::wgl::MakeCurrent(self.previous_hdc as *const c_void,
+ self.previous_hglrc as *const c_void);
}
}
}