This commit is contained in:
Araq
2020-03-21 09:24:10 +01:00
parent 047d3af6da
commit 474dd98125

View File

@@ -532,7 +532,7 @@ proc genRecordFieldsAux(m: BModule, n: PNode,
unionBody.add("struct {")
else:
if hasAttribute in CC[m.config.cCompiler].props:
unionBody.add("struct __attribute__((__packed__)){" )
unionBody.add("struct __attribute__((__packed__)){")
else:
unionBody.addf("#pragma pack(push, 1)$nstruct{", [])
unionBody.add(a)