diff --git a/build.zig.zon b/build.zig.zon index 3e59bed..c7337cb 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -5,8 +5,8 @@ .dependencies = .{ .capstone = .{ - .url = "git+https://github.com/allyourcodebase/capstone.git?ref=main#a9067fbeaf0049b812a249c237e62408c3fd3df7", - .hash = "122062cee55ea063b596d72f2d32fc3ab60551ffc1433533ab2d79f07062d4565720", + .url = "git+https://github.com/allyourcodebase/capstone.git#5.0.1-1", + .hash = "1220f284ea55271b5b68edb4471d10c622e5d5c220dd342c6e96ff50d3b801f46486", }, }, diff --git a/src/setup.zig b/src/setup.zig index 4a701f1..60ac705 100644 --- a/src/setup.zig +++ b/src/setup.zig @@ -9,7 +9,7 @@ pub const MallocFunction = ?*const fn (usize) callconv(.C) ?*anyopaque; pub const CallocFunction = ?*const fn (usize, usize) callconv(.C) ?*anyopaque; pub const ReallocFunction = ?*const fn (?*anyopaque, usize) callconv(.C) ?*anyopaque; pub const FreeFunction = ?*const fn (?*anyopaque) callconv(.C) void; -pub const VsnprintfFunction = ?*const fn ([*]u8, usize, [*]const u8, [*]cs.struct___va_list_tag_1) callconv(.C) c_int; +pub const VsnprintfFunction = ?*const fn ([*]u8, usize, [*]const u8, [*]std.builtin.VaList) callconv(.C) c_int; var ALLOCATOR: ?std.mem.Allocator = null; @@ -74,7 +74,7 @@ fn free(ptr: ?*anyopaque) callconv(.C) void { } } -extern "C" fn vsnprintf([*c]u8, usize, [*c]const u8, [*c]cs.struct___va_list_tag_1) callconv(.C) c_int; +extern "C" fn vsnprintf([*c]u8, usize, [*c]const u8, [*c]std.builtin.VaList) callconv(.C) c_int; /// Inits Capstone to be used with Zig pub fn initCapstone(alloc: std.mem.Allocator) err.CapstoneError!void {