Merge pull request #11806 from fowles/22.x

Fix the macro PROTOBUF_LITTLE_ENDIAN cannot be set correctly on the l…
pull/11891/head
deannagarcia 2 years ago committed by GitHub
commit 8efe44ffc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/google/protobuf/stubs/port.h

@ -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)) && \

Loading…
Cancel
Save