mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
travis: spawn 2 separate windows instances
This commit is contained in:

committed by
Alexander Medvednikov

parent
3e923871cf
commit
e3bd72e8e2
@ -64,8 +64,9 @@ CommonCHeaders = '
|
||||
#define _Atomic volatile
|
||||
|
||||
// MSVC cannot parse some things properly
|
||||
//#undef EMPTY_STRUCT_DECLARATION
|
||||
//#define EMPTY_STRUCT_DECLARATION void *____dummy_variable
|
||||
#undef EMPTY_STRUCT_DECLARATION
|
||||
#define EMPTY_STRUCT_DECLARATION void *____dummy_variable
|
||||
|
||||
#undef OPTION_CAST
|
||||
#define OPTION_CAST(x)
|
||||
#endif
|
||||
|
@ -329,6 +329,9 @@ fn (p mut Parser) gen_struct_init(typ string, t Type) bool {
|
||||
}
|
||||
else {
|
||||
p.gen('($typ) {')
|
||||
if t.fields.len == 1 && t.fields[0].name == '' && t.fields[0].typ.starts_with('EMPTY_STRUCT_DECLARATION') {
|
||||
p.gen(' 0 /* v empty struct initialization */ ')
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user