| ... | ... | @@ -39,7 +39,7 @@ pub const GetAppDataDirError = @import("fs/get_app_data_dir.zig").GetAppDataDirE |
| 39 | 39 | /// fit into a UTF-8 encoded array of this length. |
| 40 | 40 | /// The byte count includes room for a null sentinel byte. |
| 41 | 41 | pub const MAX_PATH_BYTES = switch (builtin.os.tag) { |
| 42 | | .linux, .macos, .ios, .freebsd, .openbsd, .netbsd, .dragonfly, .haiku, .solaris, .illumos, .plan9 => os.PATH_MAX, |
| 42 | .linux, .macos, .ios, .freebsd, .openbsd, .netbsd, .dragonfly, .haiku, .solaris, .illumos, .plan9, .emscripten => os.PATH_MAX, |
| 43 | 43 | // Each UTF-16LE character may be expanded to 3 UTF-8 bytes. |
| 44 | 44 | // If it would require 4 UTF-8 bytes, then there would be a surrogate |
| 45 | 45 | // pair in the UTF-16LE, and we (over)account 3 bytes for it that way. |