diff --git a/doc/docs.md b/doc/docs.md index 59e96ab556..6e494c8663 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -1278,7 +1278,7 @@ $if windows { $if linux { println('Linux') } -$if mac { +$if macos { println('macOS') } diff --git a/vlib/crypto/rand/rand_mac.v b/vlib/crypto/rand/rand_darwin.v similarity index 100% rename from vlib/crypto/rand/rand_mac.v rename to vlib/crypto/rand/rand_darwin.v diff --git a/vlib/os2/os2_test.v b/vlib/os2/os2_test.v index 41b18839be..de2cedf0a0 100644 --- a/vlib/os2/os2_test.v +++ b/vlib/os2/os2_test.v @@ -2,7 +2,7 @@ fn test_open() { /* - $if mac { + $if macos { f := os2.create('os2.test') f.writeln('hello world!') f.close() diff --git a/vlib/readline/readline_mac.v b/vlib/readline/readline_darwin.v similarity index 100% rename from vlib/readline/readline_mac.v rename to vlib/readline/readline_darwin.v diff --git a/vlib/runtime/runtime_mac.v b/vlib/runtime/runtime_darwin.v similarity index 100% rename from vlib/runtime/runtime_mac.v rename to vlib/runtime/runtime_darwin.v diff --git a/vlib/runtime/runtime_nix.v b/vlib/runtime/runtime_nix.v index d57824b080..40c07a7983 100644 --- a/vlib/runtime/runtime_nix.v +++ b/vlib/runtime/runtime_nix.v @@ -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