2012/6/17 Bernd <prof7...@googlemail.com>:
> 2012/6/17 Jonas Maebe <jonas.ma...@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.

Bernd
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to