gobject-introspection: Fix compilation on Windows (issue #34219, patch by bartoc)

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6630 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2018-09-04 21:15:58 +00:00
parent 72b96f5788
commit a143c72544

View File

@ -269,17 +269,16 @@ implementation
uses girpascalwriter, girCTypesMapping, girErrors, typinfo;
function IndentText(const AText: String; Spaces: Integer = 0; LineEndingCount: Integer = 1): String;
var
i: Integer;
begin
if AText = '' then
Exit('');
SetLength(Result, Spaces);
FillChar(Result[1], Spaces, ' ');
Result := Result+AText;
if LineEndingCount > 0 then
begin
SetLength(Result, Length(Result)+Length(LineEnding)*LineEndingCount);
FillChar(Result[Length(AText)+Spaces+1], LineEndingCount, LineEnding);
end;
for i := 1 to LineEndingCount do
Result := Result+LineEnding;
end;
function MakePointerTypesForType(const AName: String; PointerLevel: Integer): TStringList;