diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2024-05-26 07:07:44 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-05-27 20:56:48 -0700 |
| commit | d77f5e7aaa94b66db4e3604f21c41b315743fb81 (patch) | |
| tree | 809d2b9a253d0365861495e7a367ce6302a65bae /lib/std/process.zig | |
| parent | d403d8cb7a147856232430afe9af8562d59de38b (diff) | |
| download | zig-d77f5e7aaa94b66db4e3604f21c41b315743fb81.tar.gz zig-d77f5e7aaa94b66db4e3604f21c41b315743fb81.zip | |
Progress: fix compile errors on windows
Works for `zig build-exe`, IPC still not implemented yet.
Diffstat (limited to 'lib/std/process.zig')
| -rw-r--r-- | lib/std/process.zig | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/std/process.zig b/lib/std/process.zig index e9de2cf517..7d1f817337 100644 --- a/lib/std/process.zig +++ b/lib/std/process.zig @@ -442,10 +442,7 @@ pub fn parseEnvVarInt(comptime key: []const u8, comptime I: type, base: u8) Pars if (native_os == .windows) { const key_w = comptime std.unicode.utf8ToUtf16LeStringLiteral(key); const text = getenvW(key_w) orelse return error.EnvironmentVariableNotFound; - // For this implementation perhaps std.fmt.parseInt can be expanded to be generic across - // []u8 and []u16 like how many std.mem functions work. - _ = text; - @compileError("TODO implement this"); + return std.fmt.parseIntWithGenericCharacter(I, u16, text, base); } else if (native_os == .wasi and !builtin.link_libc) { @compileError("parseEnvVarInt is not supported for WASI without libc"); } else { |
