diff options
| author | Jae B <doogie1012@gmail.com> | 2024-02-24 10:10:50 +1100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-02-23 21:18:27 -0800 |
| commit | 774487038fa46a656d308d6686c5b3df757224cb (patch) | |
| tree | fbeb6ab58bc6651f7f636bfd6cc3213c8c1d91f9 /lib/std/fs.zig | |
| parent | 229b87cab66ec2d90ad91be2d99491f26d5a630a (diff) | |
| download | zig-774487038fa46a656d308d6686c5b3df757224cb.tar.gz zig-774487038fa46a656d308d6686c5b3df757224cb.zip | |
setup PATH_MAX for emscripten
Diffstat (limited to 'lib/std/fs.zig')
| -rw-r--r-- | lib/std/fs.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/fs.zig b/lib/std/fs.zig index 5222e5e5ca..9b88f4dd52 100644 --- a/lib/std/fs.zig +++ b/lib/std/fs.zig @@ -39,7 +39,7 @@ pub const GetAppDataDirError = @import("fs/get_app_data_dir.zig").GetAppDataDirE /// fit into a UTF-8 encoded array of this length. /// The byte count includes room for a null sentinel byte. pub const MAX_PATH_BYTES = switch (builtin.os.tag) { - .linux, .macos, .ios, .freebsd, .openbsd, .netbsd, .dragonfly, .haiku, .solaris, .illumos, .plan9 => os.PATH_MAX, + .linux, .macos, .ios, .freebsd, .openbsd, .netbsd, .dragonfly, .haiku, .solaris, .illumos, .plan9, .emscripten => os.PATH_MAX, // Each UTF-16LE character may be expanded to 3 UTF-8 bytes. // If it would require 4 UTF-8 bytes, then there would be a surrogate // pair in the UTF-16LE, and we (over)account 3 bytes for it that way. |
