Let Wuffs compile with MSVC (Microsoft Visual C++)

This commit is contained in:
Nigel Tao committed 2019-02-16 09:02:33 +11:00
1 parent 438fc10597
commit ab7d6de318
13 files changed
+182 -155

No files matched your search

+1 -1
View File
@@ -1057,7 +1057,7 @@ func (g *gen) writeInitializerImpl(b *buffer, n *a.Struct) error {
if err := g.writeSizeofSignature(b, n); err != nil {
return err
}
b.printf("{ return sizeof((%s%s){}); }\n\n", g.pkgPrefix, n.QID().Str(g.tm))
b.printf("{ return sizeof (%s%s); }\n\n", g.pkgPrefix, n.QID().Str(g.tm))
}
return nil
}