diff options
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/ast.odin | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/ast.odin b/src/common/ast.odin index ceda09c..3589848 100644 --- a/src/common/ast.odin +++ b/src/common/ast.odin @@ -103,8 +103,7 @@ collect_globals :: proc(file: ast.File, skip_private := false) -> []GlobalExpr { } if ident != nil && basic_lit != nil { - - if ident.name == "ODIN_OS" && basic_lit.tok.text == ODIN_OS { + if ident.name == "ODIN_OS" && basic_lit.tok.text[1:len(basic_lit.tok.text)-1] == ODIN_OS { if block, ok := when_decl.body.derived.(ast.Block_Stmt); ok { for stmt in block.stmts { |