From 71b50ae7fd161330dff734d28f37da08dc8338db Mon Sep 17 00:00:00 2001 From: joe-conigliaro Date: Sat, 25 Jan 2020 12:11:07 +1100 Subject: [PATCH] fix empty config struct with msvc --- vlib/compiler/gen_c.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/compiler/gen_c.v b/vlib/compiler/gen_c.v index ebe0a68c6a..72e1879f04 100644 --- a/vlib/compiler/gen_c.v +++ b/vlib/compiler/gen_c.v @@ -503,7 +503,7 @@ fn (p mut Parser) gen_struct_init(typ string, t &Type) bool { // Handle empty config ({}) if is_config && p.tok == .rcbr { p.check(.rcbr) - p.gen('($typ) {}') + p.gen('($typ) {EMPTY_STRUCT_INITIALIZATION}') return true } ptr := typ.contains('*')