From b7be14f1697988cccbbfd5bc8cf773ea3768db05 Mon Sep 17 00:00:00 2001 From: Brandon Dyck Date: Sun, 12 Dec 2021 16:28:55 -0700 Subject: [PATCH] Set Windows header version in build.zig --- build.zig | 1 + 1 file changed, 1 insertion(+) 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");