From 37262fb2288c38553cc8c8f36e59782273c83e7d Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Wed, 4 Nov 2015 11:27:50 +0100 Subject: Remove public exports of gl_common and libc --- src/api/ios/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/api/ios/mod.rs') diff --git a/src/api/ios/mod.rs b/src/api/ios/mod.rs index 52eebbf..852d97c 100644 --- a/src/api/ios/mod.rs +++ b/src/api/ios/mod.rs @@ -384,12 +384,12 @@ impl GlContext for Window { false } - fn get_proc_address(&self, addr: &str) -> *const libc::c_void { + fn get_proc_address(&self, addr: &str) -> *const () { let addr_c = CString::new(addr).unwrap(); let path = CString::new("/System/Library/Frameworks/OpenGLES.framework/OpenGLES").unwrap(); unsafe { let lib = dlopen(path.as_ptr(), RTLD_LAZY | RTLD_GLOBAL); - dlsym(lib, addr_c.as_ptr()) + dlsym(lib, addr_c.as_ptr()) as *const _ } } -- cgit v1.2.3