Skip to content

Commit

Permalink
Merge pull request #11806 from fowles/22.x
Browse files Browse the repository at this point in the history
Fix the macro PROTOBUF_LITTLE_ENDIAN cannot be set correctly on the l…
  • Loading branch information
deannagarcia authored Feb 6, 2023
2 parents 9914d2e + 518cda2 commit 8efe44f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/google/protobuf/stubs/port.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@
#include <sys/isa_defs.h> // __BYTE_ORDER
#elif defined(_AIX) || defined(__TOS_AIX__)
#include <sys/machine.h> // BYTE_ORDER
#elif defined(__QNX__)
#include <sys/param.h> // BYTE_ORDER
#else
#if !defined(__QNX__)
#include <endian.h> // __BYTE_ORDER
#endif
#endif
#if ((defined(__LITTLE_ENDIAN__) && !defined(__BIG_ENDIAN__)) || \
(defined(__BYTE_ORDER) && __BYTE_ORDER == __LITTLE_ENDIAN) || \
(defined(BYTE_ORDER) && BYTE_ORDER == LITTLE_ENDIAN)) && \
Expand Down

0 comments on commit 8efe44f

Please sign in to comment.