mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-01 12:18:15 +00:00
darwin: remove syscall usage (without -no-crt) to comply to Apple guidelines
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user