From 72e0d1a424bf1caeff77cc0cd844c014ae511685 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Thu, 14 Jan 2016 19:31:27 -0500 Subject: [PATCH] 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 --- include/msgpack/sysdep.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/msgpack/sysdep.h b/include/msgpack/sysdep.h index efc30cb5..a3f9edc9 100644 --- a/include/msgpack/sysdep.h +++ b/include/msgpack/sysdep.h @@ -78,7 +78,7 @@ #endif -#ifdef MSGPACK_ENDIAN_LITTLE_BYTE +#if MSGPACK_ENDIAN_LITTLE_BYTE # ifdef _WIN32 # if defined(ntohs)