mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-26 09:01:35 +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
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user