| ... | ... | @@ -87,6 +87,9 @@ pub fn buildCRTFile(comp: *Compilation, crt_file: CRTFile, prog_node: *std.Progr |
| 87 | 87 | |
| 88 | 88 | "-std=gnu99", |
| 89 | 89 | "-D_CRTBLD", |
| 90 | // According to Martin Storsjö, |
| 91 | // > the files under mingw-w64-crt are designed to always |
| 92 | // be built with __MSVCRT_VERSION__=0x700 |
| 90 | 93 | "-D__MSVCRT_VERSION__=0x700", |
| 91 | 94 | "-D__USE_MINGW_ANSI_STDIO=0", |
| 92 | 95 | }); |
| ... | ... | @@ -113,9 +116,11 @@ pub fn buildCRTFile(comp: *Compilation, crt_file: CRTFile, prog_node: *std.Progr |
| 113 | 116 | |
| 114 | 117 | "-std=gnu99", |
| 115 | 118 | "-D_CRTBLD", |
| 119 | // According to Martin Storsjö, |
| 120 | // > the files under mingw-w64-crt are designed to always |
| 121 | // be built with __MSVCRT_VERSION__=0x700 |
| 116 | 122 | "-D__MSVCRT_VERSION__=0x700", |
| 117 | 123 | "-D__USE_MINGW_ANSI_STDIO=0", |
| 118 | | |
| 119 | 124 | "-isystem", |
| 120 | 125 | try comp.zig_lib_directory.join(arena, &[_][]const u8{ "libc", "include", "any-windows-any" }), |
| 121 | 126 | }); |
| ... | ... | @@ -179,9 +184,11 @@ pub fn buildCRTFile(comp: *Compilation, crt_file: CRTFile, prog_node: *std.Progr |
| 179 | 184 | |
| 180 | 185 | "-std=gnu99", |
| 181 | 186 | "-D_CRTBLD", |
| 187 | // According to Martin Storsjö, |
| 188 | // > the files under mingw-w64-crt are designed to always |
| 189 | // be built with __MSVCRT_VERSION__=0x700 |
| 182 | 190 | "-D__MSVCRT_VERSION__=0x700", |
| 183 | 191 | "-D__USE_MINGW_ANSI_STDIO=0", |
| 184 | | |
| 185 | 192 | "-isystem", |
| 186 | 193 | try comp.zig_lib_directory.join(arena, &[_][]const u8{ |
| 187 | 194 | "libc", "include", "any-windows-any", |
| ... | ... | @@ -225,6 +232,9 @@ fn add_cc_args( |
| 225 | 232 | try args.appendSlice(&[_][]const u8{ |
| 226 | 233 | "-std=gnu11", |
| 227 | 234 | "-D_CRTBLD", |
| 235 | // According to Martin Storsjö, |
| 236 | // > the files under mingw-w64-crt are designed to always |
| 237 | // be built with __MSVCRT_VERSION__=0x700 |
| 228 | 238 | "-D__MSVCRT_VERSION__=0x700", |
| 229 | 239 | "-D__USE_MINGW_ANSI_STDIO=0", |
| 230 | 240 | }); |