mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 16:55:11 +01:00
Let Wuffs compile with MSVC (Microsoft Visual C++)
This commit is contained in:
1 parent
438fc10597
commit
ab7d6de318
13 files changed
+182
-155
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user