mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 14:25:16 +00:00
pthread_key_create: make it build with stage2
This commit is contained in:
parent
eb3f7d2f37
commit
397099b7ee
@ -263,7 +263,11 @@ const PThreadForkFn = if (builtin.zig_backend == .stage1)
|
||||
fn () callconv(.C) void
|
||||
else
|
||||
*const fn () callconv(.C) void;
|
||||
pub extern "c" fn pthread_key_create(key: *c.pthread_key_t, destructor: ?fn (value: *anyopaque) callconv(.C) void) c.E;
|
||||
pub extern "c" fn pthread_key_create(key: *c.pthread_key_t, destructor: ?PThreadKeyCreateFn) c.E;
|
||||
const PThreadKeyCreateFn = if (builtin.zig_backend == .stage1)
|
||||
fn (value: *anyopaque) callconv(.C) void
|
||||
else
|
||||
*const fn (value: *anyopaque) callconv(.C) void;
|
||||
pub extern "c" fn pthread_key_delete(key: c.pthread_key_t) c.E;
|
||||
pub extern "c" fn pthread_getspecific(key: c.pthread_key_t) ?*anyopaque;
|
||||
pub extern "c" fn pthread_setspecific(key: c.pthread_key_t, value: ?*anyopaque) c_int;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user