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
@@ -446,7 +446,7 @@ func (g *gen) writeStatementRet(b *buffer, n *a.Ret, depth uint32) error {
b.writes("return ")
if g.currFunk.astFunc.Out() == nil {
b.writes("((wuffs_base__empty_struct){})")
b.writes("((wuffs_base__empty_struct){0})")
} else if err := g.writeExpr(b, retExpr, depth); err != nil {
return err
}