mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-06-26 14:34:02 +02:00
Check whether MSGPACK_ENDIAN_LITTLE_BYTE is true, not defined.
msgpack/predef/other/endian.h always defines both MSGPACK_ENDIAN_LITTLE_BYTE and MSGPACK_ENDIAN_BIG_BYTE, but they're defined to a true or false value depending on whether the system is little/big endian. Fix this condition to check the truthiness rather than whether it is defined, like the other locations this macro is checked. Closes #403 Signed-off-by: James McCoy <jamessan@jamessan.com>
This commit is contained in:
parent
69f588dd36
commit
72e0d1a424
@ -78,7 +78,7 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MSGPACK_ENDIAN_LITTLE_BYTE
|
#if MSGPACK_ENDIAN_LITTLE_BYTE
|
||||||
|
|
||||||
# ifdef _WIN32
|
# ifdef _WIN32
|
||||||
# if defined(ntohs)
|
# if defined(ntohs)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user