[fpc-pascal] header translation question, 64 bit problem

Bernd prof7bit at googlemail.com
Sun Jun 17 23:14:47 CEST 2012

2012/6/17 Bernd <prof7bit at googlemail.com>:
> 2012/6/17 Jonas Maebe <jonas.maebe at elis.ugent.be>:
>> And if you use {$packrecords c}, then FPC is guaranteed to use the same alignment as C compilers (aka what the platform ABI specifies).
> Done :-)
> https://github.com/prof7bit/TorChat/blob/torchat2/src/purple/purple.pas

It works! this record with the unsigned long was the only error in
6000 lines of code, everything else immediately started working on 64
bit without changing a single line of code :-)

(Almost) The only other small discontinuity was the PNG writer from
fcl-image needs to be explicitly told Indexed:=False on 64 bit while
on 32 bit this was not necessary.


More information about the fpc-pascal mailing list