mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
rename $if mac => $if macos , _mac.v => _darwin.v
This commit is contained in:
parent
760448afa4
commit
7882312697
@ -1278,7 +1278,7 @@ $if windows {
|
||||
$if linux {
|
||||
println('Linux')
|
||||
}
|
||||
$if mac {
|
||||
$if macos {
|
||||
println('macOS')
|
||||
}
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
fn test_open() {
|
||||
/*
|
||||
$if mac {
|
||||
$if macos {
|
||||
f := os2.create('os2.test')
|
||||
f.writeln('hello world!')
|
||||
f.close()
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user