osdep/endian: add missing byte order defines

This commit is contained in:
Kacper Michajłow 2024-06-04 23:21:28 +02:00
parent 8657b20574
commit 8e4dcb15ce
1 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,10 @@
#define BYTE_ORDER __BYTE_ORDER #define BYTE_ORDER __BYTE_ORDER
#define LITTLE_ENDIAN __LITTLE_ENDIAN #define LITTLE_ENDIAN __LITTLE_ENDIAN
#define BIG_ENDIAN __BIG_ENDIAN #define BIG_ENDIAN __BIG_ENDIAN
#elif defined(__BYTE_ORDER__)
#define BYTE_ORDER __BYTE_ORDER__
#define LITTLE_ENDIAN __ORDER_LITTLE_ENDIAN__
#define BIG_ENDIAN __ORDER_BIG_ENDIAN__
#elif defined(__DARWIN_BYTE_ORDER) #elif defined(__DARWIN_BYTE_ORDER)
#define BYTE_ORDER __DARWIN_BYTE_ORDER #define BYTE_ORDER __DARWIN_BYTE_ORDER
#define LITTLE_ENDIAN __DARWIN_LITTLE_ENDIAN #define LITTLE_ENDIAN __DARWIN_LITTLE_ENDIAN