Skip to content

Commit fe574e1

Browse files
committed
Mark LoaderFn return type as callconv(.c)
1 parent 2c2eb79 commit fe574e1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub fn main() !void {
3434
gl.clearBufferfv(gl.COLOR, 0, &[_]f32{ 0.2, 0.4, 0.8, 1.0 });
3535
}
3636
37-
fn getProcAddress(name: [:0]const u8) ?*const anyopaque {
37+
fn getProcAddress(name: [:0]const u8) callconv(.c) ?*const anyopaque {
3838
// Load GL function pointer here
3939
// You could use `zsdl.gl.getProcAddress() or `zglfw.getProcAddress()`
4040
}

src/zopengl.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ comptime {
1111
pub const bindings = @import("bindings.zig");
1212
pub const wrapper = @import("wrapper.zig").Wrap(bindings);
1313

14-
pub const LoaderFn = *const fn ([*:0]const u8) ?*const anyopaque;
14+
pub const LoaderFn = *const fn ([*:0]const u8) callconv(.c) ?*const anyopaque;
1515

1616
pub const Extension = enum {
1717
KHR_debug,

0 commit comments

Comments
 (0)