darwin: remove syscall usage (without -no-crt) to comply to Apple guidelines

This commit is contained in:
Laytan Laats
2024-07-08 15:39:23 +02:00
parent 861ad2037f
commit ddad2011e2
6 changed files with 78 additions and 22 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ init_cpu_features :: proc "contextless" () {
@(static) features: CPU_Features
defer cpu_features = features
try_set :: proc "contextless" (name: string, feature: CPU_Feature) -> (ok: bool) {
try_set :: proc "contextless" (name: cstring, feature: CPU_Feature) -> (ok: bool) {
support: b32
if ok = unix.sysctlbyname(name, &support); ok && support {
features += { feature }