Set Windows header version in build.zig

This commit is contained in:
Brandon Dyck 2021-12-12 16:28:55 -07:00
parent a44b41f779
commit b7be14f169

View File

@ -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");