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
             Fix For: 0.8
         Attachments: THRIFT-1341.patch

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

        

Reply via email to