Commit 67d51ac4 authored by LitingLin's avatar LitingLin

Windows is always little-endian.

parent 224010c7
...@@ -112,8 +112,8 @@ ...@@ -112,8 +112,8 @@
#include <string> #include <string>
#include <utility> #include <utility>
#ifdef _MSC_VER #ifdef _MSC_VER
#if (defined(_M_IX86) || defined(_M_AMD64)) && \ // 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
......
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