endian.h is not available on QNX
This commit is contained in:
parent
b2b5446af0
commit
bd9d47db41
@ -136,8 +136,10 @@
|
||||
#elif defined(__FreeBSD__)
|
||||
#include <sys/endian.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(PROTOBUF_DISABLE_LITTLE_ENDIAN_OPT_FOR_TEST)
|
||||
|
@ -62,8 +62,10 @@
|
||||
#elif defined(__FreeBSD__)
|
||||
#include <sys/endian.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…
Reference in New Issue
Block a user