Skip to content

Commit 446c343

Browse files
committed
Fix compile error with std.Io.Writer on eZ80
1 parent 6ab9478 commit 446c343

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/std/os/windows.zig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4775,7 +4775,10 @@ pub const PEB = extern struct {
47754775
switch (@sizeOf(usize)) {
47764776
4 => 0x22,
47774777
8 => 0x3C,
4778-
else => unreachable,
4778+
else => if (builtin.target.os.tag == .windows)
4779+
@compileError("@sizeOf(usize) is neither 4 nor 8")
4780+
else
4781+
0, // avoid compile erros with std.Io.Writer on exotic targets
47794782
}
47804783
]ULONG,
47814784

0 commit comments

Comments
 (0)