Including <sys/param.h> on Mac/iOS doesn't define __BYTE_ORDER so PROTOBUF_LITTLE_ENDIAN was never being defined. This commit adds a check for the __LITTLE_ENDIAN__ macro which is defined by clang and Apple gcc on little endian architectures.pull/139/head
parent
59692c3fc0
commit
c3e928021f
1 changed files with 2 additions and 1 deletions
Loading…
Reference in new issue