Skip to content

Commit c337cb3

Browse files
committed
Explicit callconv (continued)
1 parent fa12b57 commit c337cb3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/zglfw.zig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,19 +1150,19 @@ pub const ContextCreationApi = enum(c_int) {
11501150
//
11511151
//--------------------------------------------------------------------------------------------------
11521152
pub const getWin32Adapter = if (builtin.target.os.tag == .windows) glfwGetWin32Adapter else _getWin32Adapter;
1153-
extern fn glfwGetWin32Adapter(*Monitor) ?[*:0]const u8;
1153+
extern fn glfwGetWin32Adapter(*Monitor) callconv(.c) ?[*:0]const u8;
11541154
fn _getWin32Adapter(_: *Monitor) ?[*:0]const u8 {
11551155
return null;
11561156
}
11571157

11581158
pub const getWin32Window = if (builtin.target.os.tag == .windows) glfwGetWin32Window else _getWin32Window;
1159-
extern fn glfwGetWin32Window(*Window) ?std.os.windows.HWND;
1159+
extern fn glfwGetWin32Window(*Window) callconv(.c) ?std.os.windows.HWND;
11601160
fn _getWin32Window(_: *Window) ?std.os.windows.HWND {
11611161
return null;
11621162
}
11631163

11641164
pub const getX11Adapter = if (_isLinuxDesktopLike() and options.enable_x11) glfwGetX11Adapter else _getX11Adapter;
1165-
extern fn glfwGetX11Adapter(*Monitor) u32;
1165+
extern fn glfwGetX11Adapter(*Monitor) callconv(.c) u32;
11661166
fn _getX11Adapter(_: *Monitor) u32 {
11671167
return 0;
11681168
}
@@ -1174,7 +1174,7 @@ fn _getX11Display() callconv(.c) ?*anyopaque {
11741174
}
11751175

11761176
pub const getX11Window = if (_isLinuxDesktopLike() and options.enable_x11) glfwGetX11Window else _getX11Window;
1177-
extern fn glfwGetX11Window(window: *Window) u32;
1177+
extern fn glfwGetX11Window(window: *Window) callconv(.c) u32;
11781178
fn _getX11Window(_: *Window) u32 {
11791179
return 0;
11801180
}

0 commit comments

Comments
 (0)