[LCP]#defines to know Endianness

Greg Black gjb at gbch.net
Thu Jul 1 15:23:01 UTC 2004


On 2004-07-01, John Navil Joseph wrote:

> Is there any predefined macros (#defines like  __cplusplus) that the
> compiler defines so as to know the endianess of the machine that the
> compiled code is to run on?

Does Linux not have the BYTE_ORDER macro in <machine/endian.h>?



More information about the linuxCprogramming mailing list