mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-03 07:10:05 -04:00
Change some uses of c_void to avoid libc version conflicts.
This commit is contained in:
@@ -89,7 +89,7 @@ impl GlContext for OsMesaContext {
|
||||
#[inline]
|
||||
unsafe fn make_current(&self) -> Result<(), ContextError> {
|
||||
let ret = osmesa_sys::OSMesaMakeCurrent(self.context, self.buffer.as_ptr()
|
||||
as *mut libc::c_void, 0x1401, self.width
|
||||
as *mut _, 0x1401, self.width
|
||||
as libc::c_int, self.height as libc::c_int);
|
||||
|
||||
// an error can only happen in case of invalid parameter, which would indicate a bug
|
||||
|
||||
@@ -521,7 +521,7 @@ impl Window {
|
||||
(*hint).res_name = c_name as *mut libc::c_char;
|
||||
(*hint).res_class = c_name as *mut libc::c_char;
|
||||
(display.xlib.XSetClassHint)(display.display, window, hint);
|
||||
(display.xlib.XFree)(hint as *mut libc::c_void);
|
||||
(display.xlib.XFree)(hint as *mut _);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user