Big Endian

Dear Rooters

In some of my header files I have to define BIG_ENDIAN for my Mac but not for Intel PCs.
Does root have a variable NNNN for the architectures so that I can write:

#ifdef NNNNN
   #define IS_BIG_ENDIAN 1
#else
   #define IS_BIG_ENDIAN 0
#endif

Best regards
Christian

Look at include RConfig.h and the various symbol definitions in particular R__BYTESWAP

Rene

Dear Rene

Thank you, I had a look at RConfig.h but was not sure if R__BYTESWAP is the correct variable.

Best regards
Christian