[
https://issues.apache.org/jira/browse/THRIFT-1341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Roger Meier resolved THRIFT-1341.
---------------------------------
Resolution: Fixed
Thanks Alexandre!
> TProtocol.h endian detection wrong with boost
> ---------------------------------------------
>
> Key: THRIFT-1341
> URL: https://issues.apache.org/jira/browse/THRIFT-1341
> Project: Thrift
> Issue Type: Bug
> Components: C++ - Library
> Affects Versions: 0.7, 0.8
> Environment: Windows
> Reporter: alexandre parenteau
> Priority: Trivial
> Labels: patch
> Fix For: 0.8
>
> Attachments: THRIFT-1341.patch
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> When compiling on platforms without /usr/include/endian.h (e.g. Windows.h),
> TProtocol.h uses boost to detect the endianess, but does it wrong: boost's
> endian.hpp will only #define BOOST_LITTLE_ENDIAN with no value (unlike
> endian.h)
> Attached is a patch against trunk which fixes the code that uses boost.
> Tested on Windows, boost 1.44.0.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira