| ... | @@ -7,7 +7,8 @@ const io = std.io; | ... | @@ -7,7 +7,8 @@ const io = std.io; |
| 7 | /// For memory sources, if the supplied byte buffer is const, then `io.Writer` is not available. | 7 | /// For memory sources, if the supplied byte buffer is const, then `io.Writer` is not available. |
| 8 | /// The error set of the stream functions is the error set of the corresponding file functions. | 8 | /// The error set of the stream functions is the error set of the corresponding file functions. |
| 9 | pub const StreamSource = union(enum) { | 9 | pub const StreamSource = union(enum) { |
| 10 | const has_file = (builtin.os.tag != .freestanding); | 10 | // TODO: expose UEFI files to std.os in a way that allows this to be true |
| | 11 | const has_file = (builtin.os.tag != .freestanding and builtin.os.tag != .uefi); |
| 11 | | 12 | |
| 12 | /// The stream access is redirected to this buffer. | 13 | /// The stream access is redirected to this buffer. |
| 13 | buffer: io.FixedBufferStream([]u8), | 14 | buffer: io.FixedBufferStream([]u8), |