From 3029786ce1dda4bb625e72ebb5202c0b89e233a2 Mon Sep 17 00:00:00 2001 From: David Reiss Date: Wed, 5 Aug 2009 16:42:59 +0000 Subject: [PATCH] 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 --- lib/cpp/src/protocol/TProtocol.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cpp/src/protocol/TProtocol.h b/lib/cpp/src/protocol/TProtocol.h index 40258277..bf38598c 100644 --- a/lib/cpp/src/protocol/TProtocol.h +++ b/lib/cpp/src/protocol/TProtocol.h @@ -107,8 +107,8 @@ using apache::thrift::transport::TTransport; | (((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) -- 2.17.1