diff --git a/vlib/compiler/comptime.v b/vlib/compiler/comptime.v index 96c672f38e..496667a28c 100644 --- a/vlib/compiler/comptime.v +++ b/vlib/compiler/comptime.v @@ -69,7 +69,9 @@ fn (p mut Parser) comp_time() { p.genln('#ifdef __TINYC__') p.check(.lcbr) p.statements_no_rcbr() - p.genln('#endif') + if ! (p.tok == .dollar && p.peek() == .key_else) { + p.genln('#endif') + } } else { println('Supported platforms:')