mirror of https://github.com/libAthena/athena.git
Windows fix
This commit is contained in:
parent
c40ee0531a
commit
f898d7843a
|
@ -12,7 +12,11 @@
|
||||||
namespace athena::utility
|
namespace athena::utility
|
||||||
{
|
{
|
||||||
inline bool isEmpty(atInt8* buf, atUint32 size) {return !memcmp(buf, buf + 1, size - 1);}
|
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__;}
|
constexpr bool isSystemBigEndian() {return __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__;}
|
||||||
|
#endif
|
||||||
inline constexpr ::athena::Endian SystemEndian = isSystemBigEndian() ? Big : Little;
|
inline constexpr ::athena::Endian SystemEndian = isSystemBigEndian() ? Big : Little;
|
||||||
inline constexpr ::athena::Endian NotSystemEndian = isSystemBigEndian() ? Little : Big;
|
inline constexpr ::athena::Endian NotSystemEndian = isSystemBigEndian() ? Little : Big;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue