THRIFT-555. cpp: Fix macro defintions for TCompact on non-GNU big endian
We were defining ntolell and letonll, but we were only using
htolell and letohll.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@801293 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/protocol/TProtocol.h b/lib/cpp/src/protocol/TProtocol.h
index 4025827..bf38598 100644
--- a/lib/cpp/src/protocol/TProtocol.h
+++ b/lib/cpp/src/protocol/TProtocol.h
@@ -107,8 +107,8 @@
| (((n) & 0x0000000000ff0000ull) << 24) \
| (((n) & 0x000000000000ff00ull) << 40) \
| (((n) & 0x00000000000000ffull) << 56) )
-# define ntolell(n) bswap_64(n)
-# define letonll(n) bswap_64(n)
+# define htolell(n) bswap_64(n)
+# define letohll(n) bswap_64(n)
# endif /* GNUC & GLIBC */
#elif __BYTE_ORDER == __LITTLE_ENDIAN
# define htolell(n) (n)