diff --git a/build.zig b/build.zig index 947c212..b9d4a3a 100644 --- a/build.zig +++ b/build.zig @@ -64,6 +64,7 @@ pub fn build(b: *std.build.Builder) !void { std.Target.Os.Tag.windows => { try c_sources.append("src/windows/WinMiniFB.c"); lib.linkSystemLibrary("gdi32"); + try c_flags.append("-D_WIN32_WINNT=0x0601"); switch (use_backend) { .opengl, .default => { try c_flags.append("-DUSE_OPENGL_API");