mirror of
https://github.com/encounter/rust-sdl2.git
synced 2026-07-10 21:18:41 -07:00
Use "system" ABI instead of "C"
This commit is contained in:
+2
-2
@@ -164,7 +164,7 @@ pub mod ll {
|
||||
pub fn SDL_EnableScreenSaver();
|
||||
pub fn SDL_DisableScreenSaver();
|
||||
pub fn SDL_GL_LoadLibrary(path: *c_char) -> c_int;
|
||||
pub fn SDL_GL_GetProcAddress(procname: *c_char) -> Option<extern "C" fn()>;
|
||||
pub fn SDL_GL_GetProcAddress(procname: *c_char) -> Option<extern "system" fn()>;
|
||||
pub fn SDL_GL_UnloadLibrary();
|
||||
pub fn SDL_GL_ExtensionSupported(extension: *c_char) -> SDL_bool;
|
||||
pub fn SDL_GL_SetAttribute(attr: SDL_GLattr, value: c_int) -> c_int;
|
||||
@@ -757,7 +757,7 @@ pub fn gl_unload_library() {
|
||||
unsafe { ll::SDL_GL_UnloadLibrary(); }
|
||||
}
|
||||
|
||||
pub fn gl_get_proc_address(procname: &str) -> Option<extern "C" fn()> {
|
||||
pub fn gl_get_proc_address(procname: &str) -> Option<extern "system" fn()> {
|
||||
unsafe {
|
||||
procname.with_c_str(|procname| {
|
||||
ll::SDL_GL_GetProcAddress(procname)
|
||||
|
||||
Reference in New Issue
Block a user