mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-06-24 13:41:23 +00:00
Introduce macro function to determine endianness
This commit is contained in:
@@ -107,6 +107,7 @@
|
|||||||
#define BE16(x) (x)
|
#define BE16(x) (x)
|
||||||
#define BE32(x) (x)
|
#define BE32(x) (x)
|
||||||
#define BE64(x) (x)
|
#define BE64(x) (x)
|
||||||
|
#define IS_LITTLE_ENDIAN() (false)
|
||||||
#else
|
#else
|
||||||
#define LE16(x) (x)
|
#define LE16(x) (x)
|
||||||
#define LE32(x) (x)
|
#define LE32(x) (x)
|
||||||
@@ -114,6 +115,7 @@
|
|||||||
#define BE16(x) BSWAP16(x)
|
#define BE16(x) BSWAP16(x)
|
||||||
#define BE32(x) BSWAP32(x)
|
#define BE32(x) BSWAP32(x)
|
||||||
#define BE64(x) BSWAP64(x)
|
#define BE64(x) BSWAP64(x)
|
||||||
|
#define IS_LITTLE_ENDIAN() (true)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int initializePlatform(void);
|
int initializePlatform(void);
|
||||||
|
|||||||
Reference in New Issue
Block a user