Function isGetFdPathSupportedOnTarget [src]
Prototype
pub fn isGetFdPathSupportedOnTarget(os: std.Target.Os) bool
Parameters
os: std.Target.Os
Source
pub fn isGetFdPathSupportedOnTarget(os: std.Target.Os) bool {
return switch (os.tag) {
.windows,
.macos,
.ios,
.watchos,
.tvos,
.visionos,
.linux,
.solaris,
.illumos,
.freebsd,
.serenity,
=> true,
.dragonfly => os.version_range.semver.max.order(.{ .major = 6, .minor = 0, .patch = 0 }) != .lt,
.netbsd => os.version_range.semver.max.order(.{ .major = 10, .minor = 0, .patch = 0 }) != .lt,
else => false,
};
}