authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-06-15 17:13:50+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-06-16 23:37:38-04:00
log2c373b0fb6e9f37919115d53c110070be9ccb401
tree57af8fc9f05e0e769f2f1e9c0532435c28ff4c33
parentd208e59496a289c4a75ef417b025eb009ff2f66d

std.Target: Update known Windows 10/11 versions and build numbers.


1 files changed, 13 insertions(+), 1 deletions(-)

lib/std/Target.zig+13-1
...@@ -231,10 +231,16 @@ pub const Os = struct {...@@ -231,10 +231,16 @@ pub const Os = struct {
231 win10_vb = 0x0A000008, //aka win10_19h2231 win10_vb = 0x0A000008, //aka win10_19h2
232 win10_mn = 0x0A000009, //aka win10_20h1232 win10_mn = 0x0A000009, //aka win10_20h1
233 win10_fe = 0x0A00000A, //aka win10_20h2233 win10_fe = 0x0A00000A, //aka win10_20h2
234 win10_co = 0x0A00000B, //aka win10_21h1
235 win10_ni = 0x0A00000C, //aka win10_21h2
236 win10_cu = 0x0A00000D, //aka win10_22h2
237 win11_zn = 0x0A00000E, //aka win11_21h2
238 win11_ga = 0x0A00000F, //aka win11_22h2
239 win11_ge = 0x0A000010, //aka win11_23h2
234 _,240 _,
235241
236 /// Latest Windows version that the Zig Standard Library is aware of242 /// Latest Windows version that the Zig Standard Library is aware of
237 pub const latest = WindowsVersion.win10_fe;243 pub const latest = WindowsVersion.win11_ge;
238244
239 /// Compared against build numbers reported by the runtime to distinguish win10 versions,245 /// Compared against build numbers reported by the runtime to distinguish win10 versions,
240 /// where 0x0A000000 + index corresponds to the WindowsVersion u32 value.246 /// where 0x0A000000 + index corresponds to the WindowsVersion u32 value.
...@@ -250,6 +256,12 @@ pub const Os = struct {...@@ -250,6 +256,12 @@ pub const Os = struct {
250 18363, //win10_vb aka win10_19h2256 18363, //win10_vb aka win10_19h2
251 19041, //win10_mn aka win10_20h1257 19041, //win10_mn aka win10_20h1
252 19042, //win10_fe aka win10_20h2258 19042, //win10_fe aka win10_20h2
259 19043, //win10_co aka win10_21h1
260 19044, //win10_ni aka win10_21h2
261 19045, //win10_cu aka win10_22h2
262 22000, //win11_zn aka win11_21h2
263 22621, //win11_ga aka win11_22h2
264 22631, //win11_ge aka win11_23h2
253 };265 };
254266
255 /// Returns whether the first version `ver` is newer (greater) than or equal to the second version `ver`.267 /// Returns whether the first version `ver` is newer (greater) than or equal to the second version `ver`.