File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -365,10 +365,10 @@ pub const gl = struct {
365365 pub const swapWindow = SDL_GL_SwapWindow ;
366366 extern fn SDL_GL_SwapWindow (window : * Window ) void ;
367367
368- pub fn getProcAddress (proc : [* :0 ]const u8 ) FunctionPointer {
368+ pub fn getProcAddress (proc : [* :0 ]const u8 ) callconv ( .c ) FunctionPointer {
369369 return SDL_GL_GetProcAddress (proc );
370370 }
371- extern fn SDL_GL_GetProcAddress (proc : ? [* :0 ]const u8 ) FunctionPointer ;
371+ extern fn SDL_GL_GetProcAddress (proc : ? [* :0 ]const u8 ) callconv ( .c ) FunctionPointer ;
372372
373373 pub fn isExtensionSupported (extension : [:0 ]const u8 ) bool {
374374 return SDL_GL_ExtensionSupported (extension ) == True ;
Original file line number Diff line number Diff line change @@ -335,10 +335,10 @@ pub const gl = struct {
335335 }
336336 extern fn SDL_GL_SwapWindow (window : * Window ) c_int ;
337337
338- pub fn getProcAddress (proc : [* :0 ]const u8 ) FunctionPointer {
338+ pub fn getProcAddress (proc : [* :0 ]const u8 ) callconv ( .c ) FunctionPointer {
339339 return SDL_GL_GetProcAddress (proc );
340340 }
341- extern fn SDL_GL_GetProcAddress (proc : ? [* :0 ]const u8 ) FunctionPointer ;
341+ extern fn SDL_GL_GetProcAddress (proc : ? [* :0 ]const u8 ) callconv ( .c ) FunctionPointer ;
342342
343343 pub fn isExtensionSupported (extension : [:0 ]const u8 ) bool {
344344 return SDL_GL_ExtensionSupported (extension ) == True ;
You can’t perform that action at this time.
0 commit comments