authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-05-24 08:54:21+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-05-24 08:54:21+02:00
log31f157d8079b020b6212256ea702ea0a15738408
tree8bff1aa331062a5a84724f6307a29ac1042ddfd8
parentb86841244421da7001a070e9515e57223f695674
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: add win11_br and win11_kr to WindowsVersion


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

lib/std/Target.zig+5-1
...@@ -250,10 +250,12 @@ pub const Os = struct {...@@ -250,10 +250,12 @@ pub const Os = struct {
250 win11_ga = 0x0A00000F, //aka win11_22h2250 win11_ga = 0x0A00000F, //aka win11_22h2
251 win11_ge = 0x0A000010, //aka win11_23h2251 win11_ge = 0x0A000010, //aka win11_23h2
252 win11_dt = 0x0A000011, //aka win11_24h2252 win11_dt = 0x0A000011, //aka win11_24h2
253 win11_br = 0x0A000012, //aka win11_25h2
254 win11_kr = 0x0A000013, //aka win11_26h1
253 _,255 _,
254256
255 /// Latest Windows version that the Zig Standard Library is aware of257 /// Latest Windows version that the Zig Standard Library is aware of
256 pub const latest = WindowsVersion.win11_dt;258 pub const latest = WindowsVersion.win11_kr;
257259
258 /// Compared against build numbers reported by the runtime to distinguish win10 versions,260 /// Compared against build numbers reported by the runtime to distinguish win10 versions,
259 /// where 0x0A000000 + index corresponds to the WindowsVersion u32 value.261 /// where 0x0A000000 + index corresponds to the WindowsVersion u32 value.
...@@ -276,6 +278,8 @@ pub const Os = struct {...@@ -276,6 +278,8 @@ pub const Os = struct {
276 22621, //win11_ga aka win11_22h2278 22621, //win11_ga aka win11_22h2
277 22631, //win11_ge aka win11_23h2279 22631, //win11_ge aka win11_23h2
278 26100, //win11_dt aka win11_24h2280 26100, //win11_dt aka win11_24h2
281 26200, //win11_br aka win11_25h2
282 28000, //win11_kr aka win11_26h1
279 };283 };
280284
281 /// Returns whether the first version `ver` is newer (greater) than or equal to the second version `ver`.285 /// Returns whether the first version `ver` is newer (greater) than or equal to the second version `ver`.