mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-31 20:00:09 +00:00
sys/info: add easy way of getting the MacOS version
This commit is contained in:
@@ -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, ' ')
|
||||
|
||||
Reference in New Issue
Block a user