[Lazarus] Lazarus Digest, Vol 8, Issue 66

Benito van der Zander benito at benibela.de
Thu Sep 25 22:10:38 CEST 2008

Hi all,
  I need to be able to handle both reading and writing files under i386 and
PowerPC via my Mac OS X application.
I can create a Universal Binary, but none of my code is cross CPU ready

1. What should I be aware of?

2. Should I use IFDEF ENDIAN to separate the i386 and PowerPC file system
calls for reading and writing? 

3. Is there an easy way to detect in my code, if the compiler is compiling
for i386 of PowerPC?



More information about the Lazarus mailing list