Set Windows header version in build.zig
This commit is contained in:
parent
a44b41f779
commit
b7be14f169
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user