Commit 224010c7 authored by LitingLin's avatar LitingLin

A bug about PROTOBUF_LITTLE_ENDIAN remain undefined on MSVC x64

parent f642c5cf
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
#include <string> #include <string>
#include <utility> #include <utility>
#ifdef _MSC_VER #ifdef _MSC_VER
#if defined(_M_IX86) && \ #if (defined(_M_IX86) || defined(_M_AMD64)) && \
!defined(PROTOBUF_DISABLE_LITTLE_ENDIAN_OPT_FOR_TEST) !defined(PROTOBUF_DISABLE_LITTLE_ENDIAN_OPT_FOR_TEST)
#define PROTOBUF_LITTLE_ENDIAN 1 #define PROTOBUF_LITTLE_ENDIAN 1
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment