Use "system" ABI instead of "C"

This commit is contained in:
Jan Niklas Hasse
2013-12-28 19:03:18 +01:00
parent bd93db9fbb
commit 588d25a84b
+2 -2
View File
@@ -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)