Skip to content

Commit

Permalink
Remove confounding and unused #define - breaks boost/predef/other/end…
Browse files Browse the repository at this point in the history
…ian.h
  • Loading branch information
Walter Gray committed May 7, 2016
1 parent 72e162c commit f4bc9e0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/google/protobuf/stubs/port.h
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,8 @@ inline void GOOGLE_UNALIGNED_STORE64(void *p, uint64 v) {
#define GOOGLE_THREAD_LOCAL __thread
#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
#define __BYTE_ORDER __LITTLE_ENDIAN
#define bswap_16(x) _byteswap_ushort(x)
#define bswap_32(x) _byteswap_ulong(x)
#define bswap_64(x) _byteswap_uint64(x)
Expand Down

0 comments on commit f4bc9e0

Please sign in to comment.