diff options
author | Dave Gauer <dave@ratfactor.com> | 2021-12-20 14:43:51 -0500 |
---|---|---|
committer | Dave Gauer <dave@ratfactor.com> | 2021-12-20 14:43:51 -0500 |
commit | d8c8e865915c66db048df471e0be46d03187ae25 (patch) | |
tree | 04235d9177482d2605c027b4063a030f346cad09 /build.zig | |
parent | 10a0cda1368f25aef0864e935b0478020c3b3bd2 (diff) | |
download | ziglings-d8c8e865915c66db048df471e0be46d03187ae25.tar.gz ziglings-d8c8e865915c66db048df471e0be46d03187ae25.tar.bz2 ziglings-d8c8e865915c66db048df471e0be46d03187ae25.tar.xz ziglings-d8c8e865915c66db048df471e0be46d03187ae25.zip |
Update c_void to anyopaque to fix #84
Diffstat (limited to 'build.zig')
-rw-r--r-- | build.zig | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -8,7 +8,7 @@ const print = std.debug.print; // When changing this version, be sure to also update README.md in two places: // 1) Getting Started // 2) Version Changes -const needed_version = std.SemanticVersion.parse("0.9.0-dev.1343") catch unreachable; +const needed_version = std.SemanticVersion.parse("0.9.0-dev.2025") catch unreachable; const Exercise = struct { /// main_file must have the format key_name.zig. @@ -501,9 +501,9 @@ pub fn build(b: *Builder) void { const DWORD = std.os.windows.DWORD; const ENABLE_VIRTUAL_TERMINAL_PROCESSING = 0x0004; const STD_ERROR_HANDLE = @bitCast(DWORD, @as(i32, -12)); - extern "kernel32" fn GetStdHandle(id: DWORD) callconv(WINAPI) ?*c_void; - extern "kernel32" fn GetConsoleMode(console: ?*c_void, out_mode: *DWORD) callconv(WINAPI) u32; - extern "kernel32" fn SetConsoleMode(console: ?*c_void, mode: DWORD) callconv(WINAPI) u32; + extern "kernel32" fn GetStdHandle(id: DWORD) callconv(WINAPI) ?*anyopaque; + extern "kernel32" fn GetConsoleMode(console: ?*anyopaque, out_mode: *DWORD) callconv(WINAPI) u32; + extern "kernel32" fn SetConsoleMode(console: ?*anyopaque, mode: DWORD) callconv(WINAPI) u32; }; const handle = w32.GetStdHandle(w32.STD_ERROR_HANDLE); var mode: w32.DWORD = 0; |