1
0
mirror of https://github.com/moparisthebest/Simba synced 2025-01-30 23:00:18 -05:00

Fixed filestreams, yay!

This commit is contained in:
Raymond 2010-04-11 21:54:22 +02:00
parent 2759ad3a03
commit 6d8da49050

View File

@ -191,23 +191,23 @@ begin
end;
end;
{$IFDEF FPC}
{{$IFDEF FPC}
// mh: because FPC doesn't handle pointers to overloaded functions
function TFileStreamCreate(filename: string; mode: word): TFileStream;
begin
result := TFilestream.Create(filename, mode);
end;
{$ENDIF}
{$ENDIF}}
procedure RIRegisterTFILESTREAM(Cl: TPSRuntimeClassImporter);
begin
with Cl.Add(TFILESTREAM) do
begin
{$IFDEF FPC}
RegisterConstructor(@TFileStreamCreate, 'CREATE');
{$ELSE}
// {$IFDEF FPC}
// RegisterConstructor(@TFileStreamCreate, 'CREATE');
// {$ELSE}
RegisterConstructor(@TFILESTREAM.CREATE, 'CREATE');
{$ENDIF}
// {$ENDIF}
end;
end;