Convert ODIN_OS and ODIN_ARCH to use enums rather than use strings
This commit is contained in:
1 parent
cfbc1a447b
commit
3d7d347192
101 files changed
+341
-310
No files matched your search
+1
-1
@@ -139,7 +139,7 @@ write_entire_file :: proc(name: string, data: []byte, truncate := true) -> (succ
|
||||
}
|
||||
|
||||
mode: int = 0
|
||||
when OS == "linux" || OS == "darwin" {
|
||||
when OS == .Linux || OS == .Darwin {
|
||||
// NOTE(justasd): 644 (owner read, write; group read; others read)
|
||||
mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user