Xiaoshuang LU created THRIFT-3298:
-------------------------------------
Summary: thrift endian converter may conflict with other libraries
Key: THRIFT-3298
URL: https://issues.apache.org/jira/browse/THRIFT-3298
Project: Thrift
Issue Type: Improvement
Components: C++ - Library
Affects Versions: 0.9.2
Reporter: Xiaoshuang LU
Fix For: 0.9.3
Thrift C++ library offers some endian converters in TProtocol.h, e.g. ntohll,
htonll, and etc. Some other libraries may also have these kinds of converters,
such as ZooKeeper. And if we include TProtocol.h in prior to zookeeper.h,
zookeeper's htonll will be replaced by the thrift macros. Consequently, I
propose that we may add prefix "THRIFT_" to these converters.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)