diff --git a/vlib/compiler/comptime.v b/vlib/compiler/comptime.v index be16a196ba..5d353a011c 100644 --- a/vlib/compiler/comptime.v +++ b/vlib/compiler/comptime.v @@ -75,7 +75,7 @@ fn (p mut Parser) comp_time() { p.comptime_if_block('__MINGW32__') } else if name == 'msvc' { - p.comptime_if_block('__MSC_VER__') + p.comptime_if_block('_MSC_VER') } else if name == 'clang' { p.comptime_if_block('__clang__')