From 97f442ef2aa65ade6bea11e90054c57b90abbaca Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Thu, 28 May 2015 16:02:52 +0200 Subject: Instead of letting the build system define endianess, rely on endian.h. --- rfb/rfbproto.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'rfb') 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 +# if __BYTE_ORDER == __BIG_ENDIAN +# define LIBVBNCSERVER_WORDS_BIGENDIAN 1 +# endif + /* MS compilers don't have strncasecmp */ #ifdef _MSC_VER -- cgit v1.2.3