Endian macros for headers and static initialization

Updated: April 19, 2023

Versions of QNX Neutrino endian conversion macros that can be used in all headers and for static initialization.

Description:

The standard versions of these macros cannot be used in all headers or for static initialization because in some architectures they end up executing code. These _CONST versions avoid this issue because they are processed by the pre-processor.

For more information about specific macros, see the information for the non-_CONST versions in the C Library Reference.

Definitions:

#define ENDIAN_RET16_CONST(__x) 
#define ENDIAN_RET32_CONST(__x) 
#define ENDIAN_RET64_CONST(__x) 
#define ENDIAN_BE16_CONST(__x) 
#define ENDIAN_BE32_CONST(__x) 
#define ENDIAN_BE64_CONST(__x) 
#define ENDIAN_LE16_CONST(__x) 
#define ENDIAN_LE32_CONST(__x) 
#define ENDIAN_LE64_CONST(__x)