diff options
author | LitingLin <linliting06@live.com> | 2015-07-30 01:51:11 +0800 |
---|---|---|
committer | LitingLin <linliting06@live.com> | 2015-07-30 01:51:11 +0800 |
commit | 224010c7759f0ca78c01df40a48fe0653cab8aca (patch) | |
tree | 813e5136c63c9829a8dade46f8461e1c36650369 /src | |
parent | f642c5cfddbe54dcab5416178880c4e27c8ed4cd (diff) | |
download | protobuf-224010c7759f0ca78c01df40a48fe0653cab8aca.tar.gz protobuf-224010c7759f0ca78c01df40a48fe0653cab8aca.tar.bz2 protobuf-224010c7759f0ca78c01df40a48fe0653cab8aca.zip |
A bug about PROTOBUF_LITTLE_ENDIAN remain undefined on MSVC x64
Diffstat (limited to 'src')
-rw-r--r-- | src/google/protobuf/io/coded_stream.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/io/coded_stream.h b/src/google/protobuf/io/coded_stream.h index 961c1a3f..a20f4445 100644 --- a/src/google/protobuf/io/coded_stream.h +++ b/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 |