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:

committed by
Alexander Medvednikov

parent
41f4ec5a3b
commit
049d78a78d
@ -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 ;'
|
||||
|
Reference in New Issue
Block a user