From f2fb41162f712ebc5992e88d74f15fa351de1bf4 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Fri, 22 May 2026 13:56:29 -0700 Subject: [PATCH] lowercase c callconv --- mod.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod.zig b/mod.zig index c5e18d57e2f41a9760bf8135e09b4d8a9a14b819..e261224f3e9602760172158cc644bbeb9add708e 100644 --- a/mod.zig +++ b/mod.zig @@ -2221,7 +2221,7 @@ pub const libc = struct { /// int pthread_create(pthread_t *restrict thread, const pthread_attr_t *restrict attr, void *(*start_routine)(void*), void *restrict arg); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_create.html - pub extern fn pthread_create(noalias newthread: *pthread_t, noalias attr: *const pthread_attr_t, start_routine: *const fn (*anyopaque) callconv(.C) ?*anyopaque, noalias arg: *anyopaque) c_int; + pub extern fn pthread_create(noalias newthread: *pthread_t, noalias attr: *const pthread_attr_t, start_routine: *const fn (*anyopaque) callconv(.c) ?*anyopaque, noalias arg: *anyopaque) c_int; /// int pthread_detach(pthread_t thread); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_detach.html @@ -3406,7 +3406,7 @@ pub fn pthread_attr_setguardsize(attr: *pthread_attr_t, size: usize) !void { if (rc != 0) return errno.fromInt(rc); std.debug.assert(rc == 0); } -pub fn pthread_create(noalias newthread: *pthread_t, noalias attr: *const pthread_attr_t, start_routine: *const fn (*anyopaque) callconv(.C) ?*anyopaque, noalias arg: *anyopaque) !void { +pub fn pthread_create(noalias newthread: *pthread_t, noalias attr: *const pthread_attr_t, start_routine: *const fn (*anyopaque) callconv(.c) ?*anyopaque, noalias arg: *anyopaque) !void { const rc = libc.pthread_create(newthread, attr, start_routine, arg); if (rc != 0) return errno.fromInt(rc); std.debug.assert(rc == 0); -- 2.54.0