mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 10:48:51 +00:00
THRIFT-1341 TProtocol.h endian detection wrong with boost
Patch: alexandre parenteau git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1169963 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f4eec7a57b
commit
a93848b684
@ -90,9 +90,15 @@ using apache::thrift::transport::TTransport;
|
||||
# define __BIG_ENDIAN BIG_ENDIAN
|
||||
# else
|
||||
# include <boost/config.hpp>
|
||||
# include <boost/detail/endian.hpp>
|
||||
# define __BYTE_ORDER BOOST_BYTE_ORDER
|
||||
# define __LITTLE_ENDIAN BOOST_LITTLE_ENDIAN
|
||||
# define __BIG_ENDIAN BOOST_BIG_ENDIAN
|
||||
# ifdef BOOST_LITTLE_ENDIAN
|
||||
# define __LITTLE_ENDIAN __BYTE_ORDER
|
||||
# define __BIG_ENDIAN 0
|
||||
# else
|
||||
# define __LITTLE_ENDIAN 0
|
||||
# define __BIG_ENDIAN __BYTE_ORDER
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user