[fpc-pascal] Byte order modification in fpc on ARM?

Karoly Balogh (Charlie/SGR) charlie at scenergy.dfmk.hu
Mon Oct 19 15:39:49 CEST 2015


Hi,

On Mon, 19 Oct 2015, Jonas Maebe wrote:

> Bo Berglund wrote on Mon, 19 Oct 2015:
>
> > Is there a function or such to interrogate the byte order of the
> > platform FPC runs on? So that I could add a test at the start of
> > download to check if swapping is needed?
>
> Use the http://www.freepascal.org/docs-html/rtl/system/ntobe.html function and
> you don't have to care about what your host platform uses.

Right, we have them in the system unit as well, no need for the sockets
unit. Silly me.

Charlie



More information about the fpc-pascal mailing list