aboutsummaryrefslogtreecommitdiff
path: root/sdl2/gl.ha
diff options
context:
space:
mode:
authorAutumn! <autumnull@posteo.net>2023-05-24 20:37:00 +0000
committerDrew DeVault <sir@cmpwn.com>2023-06-04 09:23:18 +0200
commit3ca5d97376151d6f1a4a1787b6609c470a05a82c (patch)
tree624e7cdf0711f30512b9ce03c67fd9356073b1ad /sdl2/gl.ha
parentadded some missing bindings (diff)
downloadhare-chip8-3ca5d97376151d6f1a4a1787b6609c470a05a82c.tar.gz
Use types::c:: instead of char and strings::
Signed-off-by: Autumn! <autumnull@posteo.net>
Diffstat (limited to '')
-rw-r--r--sdl2/gl.ha4
1 files changed, 3 insertions, 1 deletions
diff --git a/sdl2/gl.ha b/sdl2/gl.ha
index 023a62f..6599da8 100644
--- a/sdl2/gl.ha
+++ b/sdl2/gl.ha
@@ -1,3 +1,5 @@
+use types::c;
+
export type SDL_GLContext = void;
export type SDL_GLprofile = enum int {
@@ -39,7 +41,7 @@ export type SDL_GLattr = enum {
export @symbol("SDL_GL_CreateContext") fn SDL_GL_CreateContext(
window: *SDL_Window) *SDL_GLContext;
export @symbol("SDL_GL_GetProcAddress") fn SDL_GL_GetProcAddress(
- proc: *const char) *void;
+ proc: *const c::char) *void;
export @symbol("SDL_GL_SetAttribute") fn SDL_GL_SetAttribute(
attr: SDL_GLattr, value: int) *void;
export @symbol("SDL_GL_SwapWindow") fn SDL_GL_SwapWindow(window: *SDL_Window) void;