Skip to content

Conversation

@jamessan
Copy link
Contributor

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 [email protected]

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 msgpack#403

Signed-off-by: James McCoy <[email protected]>
@redboltz
Copy link
Contributor

@jamessan, thank you very much!

redboltz added a commit that referenced this pull request Jan 15, 2016
Check whether MSGPACK_ENDIAN_LITTLE_BYTE is true, not defined.
@redboltz redboltz merged commit 0a8d25c into msgpack:master Jan 15, 2016
@jamessan jamessan deleted the fix-endian-condition branch January 15, 2016 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants