mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 05:10:03 -04:00
Remove public exports of gl_common and libc
This commit is contained in:
@@ -91,7 +91,7 @@ impl GlContext for HeadlessContext {
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn get_proc_address(&self, _addr: &str) -> *const libc::c_void {
|
||||
fn get_proc_address(&self, _addr: &str) -> *const () {
|
||||
let symbol_name: CFString = _addr.parse().unwrap();
|
||||
let framework_name: CFString = "com.apple.opengl".parse().unwrap();
|
||||
let framework = unsafe {
|
||||
@@ -100,7 +100,7 @@ impl GlContext for HeadlessContext {
|
||||
let symbol = unsafe {
|
||||
CFBundleGetFunctionPointerForName(framework, symbol_name.as_concrete_TypeRef())
|
||||
};
|
||||
symbol as *const libc::c_void
|
||||
symbol as *const ()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
||||
@@ -777,7 +777,7 @@ impl GlContext for Window {
|
||||
}
|
||||
}
|
||||
|
||||
fn get_proc_address(&self, addr: &str) -> *const libc::c_void {
|
||||
fn get_proc_address(&self, addr: &str) -> *const () {
|
||||
let symbol_name: CFString = FromStr::from_str(addr).unwrap();
|
||||
let framework_name: CFString = FromStr::from_str("com.apple.opengl").unwrap();
|
||||
let framework = unsafe {
|
||||
|
||||
Reference in New Issue
Block a user