rendered paste body#if defined(__WIN32) || defined(__WIN32__) || defined(__WIN64) || \ defined(__WIN64__)/* Windows doesnt have endian.h, and only runs on AMD64/Intel, * so it's little endian */#define ENDIAN(x) (x & 0xFF000000) | (x & 0x00FF0000) << 8 | \ (x & 0x00000FF00) << 16 | (x & 0x0000000FF) << 24#else /* ifdef __WIN32*/#include <endian.h>#if __BYTEORDER == __BIG_ENDIAN#define ENDIAN(x) x#elif __BYTEORDER == __LITTLE_ENDIAN#define ENDIAN(x) (x & 0xFF000000) | (x & 0x00FF0000) << 8 | \ (x & 0x0000FF00) << 16 | (x & 0x000000FF) << 24#elif __BYTEORDER == __PDP_ENDIAN#define (x) (x & 0xFF000000) << 16 | (x & 0x00FF0000) << 24 | \ (x & 0x0000FF00) | (x & 0x000000FF) << 8#endif /* __BYTEORDER */#endif /* WIN32/64 */