mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
fix byte order for qnx
This commit is contained in:
parent
b944cc1248
commit
a49d084429
1 changed files with 14 additions and 0 deletions
|
@ -205,6 +205,20 @@ typedef unsigned __int64 u_int64_t;
|
|||
#include <endian.h>
|
||||
#endif
|
||||
|
||||
#if defined(__QNX__)
|
||||
#include <gulliver.h>
|
||||
#if defined(__LITTLEENDIAN__)
|
||||
#define BYTE_ORDER __LITTLEENDIAN__
|
||||
#define LITTLE_ENDIAN __LITTLEENDIAN__
|
||||
#define BIG_ENDIAN 4321 /* to show byte order (taken from gcc); for suppres warning that BIG_ENDIAN is not defined. */
|
||||
#endif
|
||||
#if defined(__BIGENDIAN__)
|
||||
#define BYTE_ORDER __BIGENDIAN__
|
||||
#define LITTLE_ENDIAN 1234 /* to show byte order (taken from gcc); for suppres warning that LITTLE_ENDIAN is not defined. */
|
||||
#define BIG_ENDIAN __BIGENDIAN__
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if !defined(BYTE_ORDER)
|
||||
# define BYTE_ORDER __BYTE_ORDER
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue