diff options
author | Christian Beier <dontmind@freeshell.org> | 2015-05-28 16:02:52 +0200 |
---|---|---|
committer | Christian Beier <dontmind@freeshell.org> | 2015-05-28 16:02:52 +0200 |
commit | 97f442ef2aa65ade6bea11e90054c57b90abbaca (patch) | |
tree | 78361ab8a669da971149644902d190cbef54ad89 /rfb/rfbproto.h | |
parent | 92f558482d94c5152174a1983a40863bd6b07911 (diff) | |
download | libtdevnc-97f442ef2aa65ade6bea11e90054c57b90abbaca.tar.gz libtdevnc-97f442ef2aa65ade6bea11e90054c57b90abbaca.zip |
Instead of letting the build system define endianess, rely on endian.h.
Diffstat (limited to 'rfb/rfbproto.h')
-rw-r--r-- | rfb/rfbproto.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rfb/rfbproto.h b/rfb/rfbproto.h index 9b082dd..354f1aa 100644 --- a/rfb/rfbproto.h +++ b/rfb/rfbproto.h @@ -80,11 +80,11 @@ #endif #endif -/* some autotool versions do not properly prefix - WORDS_BIGENDIAN, so do that manually */ -#ifdef WORDS_BIGENDIAN -#define LIBVNCSERVER_WORDS_BIGENDIAN -#endif +# include <endian.h> +# if __BYTE_ORDER == __BIG_ENDIAN +# define LIBVBNCSERVER_WORDS_BIGENDIAN 1 +# endif + /* MS compilers don't have strncasecmp */ #ifdef _MSC_VER |