summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authordscho <dscho>2003-02-09 13:30:53 +0000
committerdscho <dscho>2003-02-09 13:30:53 +0000
commitb8a0af825971c6c5fef9e2111fb0d1b049a93a8d (patch)
treeb77930d578c0d5c4db4647fa893bcc67776caf6b /include
parent76e558d2b8b6bc41ffcce6b48fda5dca2274c12d (diff)
downloadlibtdevnc-b8a0af82.tar.gz
libtdevnc-b8a0af82.zip
bigendian is now determined at configure time
Diffstat (limited to 'include')
-rw-r--r--include/rfb.h37
1 files changed, 2 insertions, 35 deletions
diff --git a/include/rfb.h b/include/rfb.h
index fcaa995..52a0804 100644
--- a/include/rfb.h
+++ b/include/rfb.h
@@ -60,50 +60,17 @@ typedef signed char Bool;
#include "rfbproto.h"
-#ifdef __linux__
-#include <endian.h>
-#elif defined(__APPLE__) || defined(__FreeBSD__)
#include <sys/types.h>
-#include <machine/endian.h>
-#define _BYTE_ORDER BYTE_ORDER
-#define _LITTLE_ENDIAN LITTLE_ENDIAN
-#elif defined (__SVR4) && defined (__sun) /* Solaris */
-#include <sys/types.h>
-#if defined(__sparc)
- /* SPARC here (big endian) */
-#define _BYTE_ORDER 4321
-#elif defined(__i386)
-#define _BYTE_ORDER 1234
-#else
-#error Solaris 2.5.1 had ppc support did it not? :-)
-#endif
-#undef Bool
-#define Bool char
-#undef SIGNED
-#define SIGNED
-#include <sys/types.h>
-/* typedef unsigned int pthread_t; */
-#elif defined(WIN32)
-#define _LITTLE_ENDIAN 1234
-#define _BYTE_ORDER _LITTLE_ENDIAN
+#if defined(WIN32)
+#define WORDS_BIGENDIAN
#undef Bool
#define Bool int
-#else
-#include <sys/endian.h>
#endif
#ifdef __sgi__
typedef int socklen_t;
#endif
-#ifndef _BYTE_ORDER
-#define _BYTE_ORDER __BYTE_ORDER
-#endif
-
-#if !defined(_LITTLE_ENDIAN) && defined(__LITTLE_ENDIAN)
-#define _LITTLE_ENDIAN __LITTLE_ENDIAN
-#endif
-
#ifdef WIN32
#include <sys/timeb.h>
#include <winsock.h>