summaryrefslogtreecommitdiffstats
path: root/rfb
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2015-05-28 16:02:52 +0200
committerChristian Beier <dontmind@freeshell.org>2015-05-28 16:02:52 +0200
commit97f442ef2aa65ade6bea11e90054c57b90abbaca (patch)
tree78361ab8a669da971149644902d190cbef54ad89 /rfb
parent92f558482d94c5152174a1983a40863bd6b07911 (diff)
downloadlibtdevnc-97f442ef.tar.gz
libtdevnc-97f442ef.zip
Instead of letting the build system define endianess, rely on endian.h.
Diffstat (limited to 'rfb')
-rw-r--r--rfb/rfbproto.h10
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