Add WUFFS_BASE__MAYBE_ATTRIBUTE_TARGET

This commit is contained in:
Nigel Tao committed 2021-03-17 12:03:06 +11:00
1 parent 073d3e0150
commit 9914f7314d
6 files changed
+83 -65

No files matched your search

+1 -1
View File
@@ -239,7 +239,7 @@ func (g *gen) writeFuncImpl(b *buffer, n *a.Func) error {
b.printf("#if defined(WUFFS_BASE__CPU_ARCH__%s)\n", caMacro)
}
if caAttribute != "" {
b.printf("#if defined(__GNUC__)\n%s\n#endif\n", caAttribute)
b.printf("%s\n", caAttribute)
}
if err := g.writeFuncSignature(b, n, wfsCDecl); err != nil {