mirror of
https://github.com/libAthena/athena.git
synced 2025-12-09 21:47:52 +00:00
Windows fix
This commit is contained in:
@@ -12,7 +12,11 @@
|
||||
namespace athena::utility
|
||||
{
|
||||
inline bool isEmpty(atInt8* buf, atUint32 size) {return !memcmp(buf, buf + 1, size - 1);}
|
||||
#if _WIN32
|
||||
constexpr bool isSystemBigEndian() {return false;}
|
||||
#else
|
||||
constexpr bool isSystemBigEndian() {return __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__;}
|
||||
#endif
|
||||
inline constexpr ::athena::Endian SystemEndian = isSystemBigEndian() ? Big : Little;
|
||||
inline constexpr ::athena::Endian NotSystemEndian = isSystemBigEndian() ? Little : Big;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user