diff options
Diffstat (limited to 'src')
| -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 4f5850f..9ca58ed 100644 --- a/src/common/ast.odin +++ b/src/common/ast.odin @@ -92,8 +92,7 @@ collect_globals :: proc(file: ast.File) -> []GlobalExpr { if ident != nil && basic_lit != nil { - //hardcode for windows for now - if ident.name == "ODIN_OS" && basic_lit.tok.text == "\"windows\"" { + if ident.name == "ODIN_OS" && basic_lit.tok.text == ODIN_OS { if block, ok := when_decl.body.derived.(ast.Block_Stmt); ok { for stmt in block.stmts { |