aboutsummaryrefslogtreecommitdiff
path: root/core/path/filepath/path.odin
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-01-20 19:56:05 +0000
committergingerBill <bill@gingerbill.org>2022-01-20 19:56:05 +0000
commit3d7d3471924574beee08fc304a6daf6a8707d723 (patch)
tree6151973548aef5ac937e780170e9fe1448d154d4 /core/path/filepath/path.odin
parentcfbc1a447bba4e3648d9e15c1f776d6d8068951e (diff)
Convert `ODIN_OS` and `ODIN_ARCH` to use enums rather than use strings
Diffstat (limited to 'core/path/filepath/path.odin')
-rw-r--r--core/path/filepath/path.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/path/filepath/path.odin b/core/path/filepath/path.odin
index 39cd80a47..d6e36f649 100644
--- a/core/path/filepath/path.odin
+++ b/core/path/filepath/path.odin
@@ -8,7 +8,7 @@ import "core:strings"
is_separator :: proc(c: byte) -> bool {
switch c {
case '/': return true
- case '\\': return ODIN_OS == "windows"
+ case '\\': return ODIN_OS == .Windows
}
return false
}
@@ -32,7 +32,7 @@ volume_name :: proc(path: string) -> string {
}
volume_name_len :: proc(path: string) -> int {
- if ODIN_OS == "windows" {
+ if ODIN_OS == .Windows {
if len(path) < 2 {
return 0
}