rename $if mac => $if macos , _mac.v => _darwin.v

pull/3383/head
Delyan Angelov 2020-01-09 12:12:35 +02:00 committed by Alexander Medvednikov
parent 760448afa4
commit 7882312697
6 changed files with 3 additions and 3 deletions

View File

@ -1278,7 +1278,7 @@ $if windows {
$if linux {
println('Linux')
}
$if mac {
$if macos {
println('macOS')
}

View File

@ -2,7 +2,7 @@
fn test_open() {
/*
$if mac {
$if macos {
f := os2.create('os2.test')
f.writeln('hello world!')
f.close()

View File

@ -4,7 +4,7 @@ fn nr_cpus_nix() int {
$if linux {
return int(C.sysconf(C._SC_NPROCESSORS_ONLN))
}
$if mac {
$if macos {
return int(C.sysconf(C._SC_NPROCESSORS_ONLN))
}
return 1