Merge pull request #651 from litinglin/master

On x64 MSVC platform, macro PROTOBUF_LITTLE_ENDIAN won't be set
pull/485/merge
Feng Xiao 9 years ago
commit add3e8df57
  1. 4
      src/google/protobuf/io/coded_stream.h

@ -112,8 +112,8 @@
#include <string> #include <string>
#include <utility> #include <utility>
#ifdef _MSC_VER #ifdef _MSC_VER
#if defined(_M_IX86) && \ // Assuming windows is always little-endian.
!defined(PROTOBUF_DISABLE_LITTLE_ENDIAN_OPT_FOR_TEST) #if !defined(PROTOBUF_DISABLE_LITTLE_ENDIAN_OPT_FOR_TEST)
#define PROTOBUF_LITTLE_ENDIAN 1 #define PROTOBUF_LITTLE_ENDIAN 1
#endif #endif
#if _MSC_VER >= 1300 #if _MSC_VER >= 1300

Loading…
Cancel
Save