Skip to content

Commit 72e0d1a

Browse files
committed
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 <[email protected]>
1 parent 69f588d commit 72e0d1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/msgpack/sysdep.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878

7979
#endif
8080

81-
#ifdef MSGPACK_ENDIAN_LITTLE_BYTE
81+
#if MSGPACK_ENDIAN_LITTLE_BYTE
8282

8383
# ifdef _WIN32
8484
# if defined(ntohs)

0 commit comments

Comments
 (0)