mirror of
https://github.com/ziglang/zig.git
synced 2026-02-15 13:58:27 +00:00
check for UEFI in io.StreamSource
This commit is contained in:
parent
2b8687ba2d
commit
0dffab7356
@ -7,7 +7,8 @@ const io = std.io;
|
||||
/// For memory sources, if the supplied byte buffer is const, then `io.Writer` is not available.
|
||||
/// The error set of the stream functions is the error set of the corresponding file functions.
|
||||
pub const StreamSource = union(enum) {
|
||||
const has_file = (builtin.os.tag != .freestanding);
|
||||
// TODO: expose UEFI files to std.os in a way that allows this to be true
|
||||
const has_file = (builtin.os.tag != .freestanding and builtin.os.tag != .uefi);
|
||||
|
||||
/// The stream access is redirected to this buffer.
|
||||
buffer: io.FixedBufferStream([]u8),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user