소스 검색

Merge pull request #651 from litinglin/master

On x64 MSVC platform, macro PROTOBUF_LITTLE_ENDIAN won't be set
Feng Xiao 10 년 전
부모
커밋
add3e8df57
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/google/protobuf/io/coded_stream.h

+ 2 - 2
src/google/protobuf/io/coded_stream.h

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