diff options
author | Feng Xiao <xfxyjwf@gmail.com> | 2015-08-26 22:32:04 +0100 |
---|---|---|
committer | Feng Xiao <xfxyjwf@gmail.com> | 2015-08-26 22:32:04 +0100 |
commit | b47bf4c9300c8effa9c93ca1cc5cc51a12c8e119 (patch) | |
tree | ec889a4bf07e94a65a29213453e480355d263670 /src/google | |
parent | d7d9accc1d2acfa35e5765150f1ac9dcdf34637a (diff) | |
download | protobuf-b47bf4c9300c8effa9c93ca1cc5cc51a12c8e119.tar.gz protobuf-b47bf4c9300c8effa9c93ca1cc5cc51a12c8e119.tar.bz2 protobuf-b47bf4c9300c8effa9c93ca1cc5cc51a12c8e119.zip |
Assume LITTLE_ENDIAN for windows build.
Diffstat (limited to 'src/google')
-rw-r--r-- | src/google/protobuf/stubs/port.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/google/protobuf/stubs/port.h b/src/google/protobuf/stubs/port.h index 5158a6f9..55c41685 100644 --- a/src/google/protobuf/stubs/port.h +++ b/src/google/protobuf/stubs/port.h @@ -45,12 +45,12 @@ #endif #undef PROTOBUF_LITTLE_ENDIAN -#ifdef _MSC_VER +#ifdef _WIN32 // 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 + #if defined(_MSC_VER) && _MSC_VER >= 1300 // If MSVC has "/RTCc" set, it will complain about truncating casts at // runtime. This file contains some intentional truncating casts. #pragma runtime_checks("c", off) |