Delphi's LongInt and LongWord are 32 bits on Windows, but 64 bits on supported Posix platforms( http://docwiki.embarcadero.com/RADStudio/Rio/en/Simple_Types_(Delphi)), following the conventions from LP64/LLP64. FreePascal declares with the same size for all platforms.
What's the best way to do portable code: using types clong and culong? FreePascal could emit a warning when compiling a code with Longint/Longword variables, targeting a Posix platform, with {$mode delphi}? Regards, Marcelo Rocha
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal