1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

Change CGen so that v.c is compileable with msvc

This commit is contained in:
Emily Hudson
2019-07-24 16:46:41 +01:00
committed by Alexander Medvednikov
parent 41f4ec5a3b
commit 049d78a78d
4 changed files with 30 additions and 28 deletions

View File

@ -493,9 +493,9 @@ fn (p mut Parser) async_fn_call(f Fn, method_ph int, receiver_var, receiver_type
did_gen_something = true
}
if p.os == .msvc && !did_gen_something {
if !did_gen_something {
// Msvc doesnt like empty struct
arg_struct += 'void *____dummy_variable;'
arg_struct += 'EMPTY_STRUCT_DECLARATION'
}
arg_struct += '} $arg_struct_name ;'