In converting a Delphi dll to the compiler couldn't find an include file filerec.inc required by SysUtils.
When I searched my hard drive I found two copies of filerec.inc, one in c:\lazarus\fpc\2.2.4\source\rtl\inc and the other in c:\lazarus\fpc\2.2.4\source\rtl\\objpas\classes.
Both define the FileRec record but differently.
In c:\lazarus\fpc\2.2.4\source\rtl\inc\filerec.inc the definition is:
type
FileRec = Packed Record
Handle : THandle;
Mode : longint;
RecSize : SizeInt;
_private : array[1..3 * SizeOf(SizeInt) + 5 * SizeOf (pointer)] of byte;
UserData : array[1..32] of byte;
name : array[0..filerecnamelength] of char;
End;
and in C:\lazarus\fpc\2.2.4\source\rtl\objpas\classes\filerec.inc
type
FileRec = Packed Record
Handle,
Mode,
RecSize : longint;
_private : array[1..32] of byte;
UserData : array[1..16] of byte;
name : array[0..filerecnamelength] of char;
End;
So which one should I use?