ソースを参照

A bug about PROTOBUF_LITTLE_ENDIAN remain undefined on MSVC x64

LitingLin 10 年 前
コミット
224010c775
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/google/protobuf/io/coded_stream.h

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

@@ -112,7 +112,7 @@
 #include <string>
 #include <utility>
 #ifdef _MSC_VER
-  #if defined(_M_IX86) && \
+  #if (defined(_M_IX86) || defined(_M_AMD64)) && \
       !defined(PROTOBUF_DISABLE_LITTLE_ENDIAN_OPT_FOR_TEST)
     #define PROTOBUF_LITTLE_ENDIAN 1
   #endif