sys/info: add easy way of getting the MacOS version

This commit is contained in:
Laytan Laats
2024-04-30 00:24:09 +02:00
parent 30cfdd73b0
commit e896efdaeb
2 changed files with 11 additions and 4 deletions
+2
View File
@@ -76,6 +76,8 @@ init_os_version :: proc () {
os_version.minor = rel.darwin.y
os_version.patch = rel.darwin.z
macos_version = transmute(Version)rel.release.version
strings.write_string(&b, rel.os_name)
if match == .Exact || match == .Nearest {
strings.write_rune(&b, ' ')