diff --git a/tools/gir2pascal/girpascalwritertypes.pas b/tools/gir2pascal/girpascalwritertypes.pas index 0a7b32a3e3..2055d85fba 100644 --- a/tools/gir2pascal/girpascalwritertypes.pas +++ b/tools/gir2pascal/girpascalwritertypes.pas @@ -873,11 +873,11 @@ end; function TPascalUnit.cExternal(const cName: String = ''): String; begin - Result := ' external {$ifdef MsWindows} ' + UnitName + '_library'; + Result := ' external ' + UnitName + '_library'; if cName <> '' then begin Result += ' name ''' + cName + ''''; end; - Result += ' {$endif};'; + Result += ';'; end; function TPascalUnit.WantTypeSection: TPDeclarationType;