feature. See also
. The project being documented here (as the example) is the Zig library itself.
c.timeval
pub const timeval = switch (native_os)
File
Code
pub const timeval = switch (native_os) {
.linux => linux.timeval,
.emscripten => emscripten.timeval,
.windows => extern struct {
sec: c_long,
usec: c_long,
},
.dragonfly, .freebsd, .netbsd, .openbsd, .haiku, .illumos, .serenity, .driverkit, .ios, .maccatalyst, .macos, .tvos, .visionos, .watchos, .wasi => extern struct {
sec: time_t,
usec: suseconds_t,
},
else => void,
}