소스 검색

Remove confounding and unused #define - breaks boost/predef/other/endian.h

Walter Gray 9 년 전
부모
커밋
f4bc9e0ddb
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      src/google/protobuf/stubs/port.h

+ 1 - 3
src/google/protobuf/stubs/port.h

@@ -276,10 +276,8 @@ inline void GOOGLE_UNALIGNED_STORE64(void *p, uint64 v) {
 #define GOOGLE_THREAD_LOCAL __thread
 #define GOOGLE_THREAD_LOCAL __thread
 #endif
 #endif
 
 
-// The following guarantees declaration of the byte swap functions, and
-// defines __BYTE_ORDER for MSVC
+// The following guarantees declaration of the byte swap functions.
 #ifdef _MSC_VER
 #ifdef _MSC_VER
-#define __BYTE_ORDER __LITTLE_ENDIAN
 #define bswap_16(x) _byteswap_ushort(x)
 #define bswap_16(x) _byteswap_ushort(x)
 #define bswap_32(x) _byteswap_ulong(x)
 #define bswap_32(x) _byteswap_ulong(x)
 #define bswap_64(x) _byteswap_uint64(x)
 #define bswap_64(x) _byteswap_uint64(x)