change pointer type to workaround zig bug

This commit is contained in:
Mitchell Hashimoto 2024-01-05 20:34:36 -08:00
parent 3f92c2dbde
commit 9c45d36673
No known key found for this signature in database
GPG key ID: 523D5DC389D273BC

View file

@ -200,7 +200,9 @@ fn BlockContext(comptime Captures: type, comptime InvokeFn: type) type {
}); });
} }
const NSConcreteStackBlock = @extern(*anyopaque, .{ .name = "_NSConcreteStackBlock" }); // Pointer to opaque instead of anyopaque: https://github.com/ziglang/zig/issues/18461
const NSConcreteStackBlock = @extern(*opaque {}, .{ .name = "_NSConcreteStackBlock" });
extern "C" fn _Block_object_assign(dst: *anyopaque, src: *const anyopaque, flag: c_int) void; extern "C" fn _Block_object_assign(dst: *anyopaque, src: *const anyopaque, flag: c_int) void;
extern "C" fn _Block_object_dispose(src: *const anyopaque, flag: c_int) void; extern "C" fn _Block_object_dispose(src: *const anyopaque, flag: c_int) void;