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.
Jonas _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal