mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Move bit set creation to compiler guard. Fix indentation on posix/sys_sem.
This commit is contained in:
@@ -143,6 +143,8 @@ when ODIN_OS == .Linux {
|
|||||||
// RDONLY = 0, // Default
|
// RDONLY = 0, // Default
|
||||||
}
|
}
|
||||||
|
|
||||||
|
O_Flags :: bit_set[O_Flag_Bits; c.int]
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
O_Flag_Bits :: enum c.int {
|
O_Flag_Bits :: enum c.int {
|
||||||
@@ -190,8 +192,9 @@ when ODIN_OS == .Linux {
|
|||||||
// Reading only.
|
// Reading only.
|
||||||
// RDONLY = 0, // Default
|
// RDONLY = 0, // Default
|
||||||
}
|
}
|
||||||
|
|
||||||
|
O_Flags :: bit_set[O_Flag_Bits; c.int]
|
||||||
}
|
}
|
||||||
O_Flags :: bit_set[O_Flag_Bits; c.int]
|
|
||||||
|
|
||||||
// A mask of all the access mode bits.
|
// A mask of all the access mode bits.
|
||||||
when ODIN_OS == .Linux {
|
when ODIN_OS == .Linux {
|
||||||
|
|||||||
Reference in New Issue
Block a user