diff options
author | dscho <dscho> | 2002-04-23 08:21:39 +0000 |
---|---|---|
committer | dscho <dscho> | 2002-04-23 08:21:39 +0000 |
commit | 49bfc728fab29bafaba49cf58867906390986852 (patch) | |
tree | b4afe80d4efec08aacdb6d793ac65c1221028dbd /rfb.h | |
parent | ab4126d1ec05d7c078ac7635aae339bd96ce7863 (diff) | |
download | libtdevnc-49bfc728fab29bafaba49cf58867906390986852.tar.gz libtdevnc-49bfc728fab29bafaba49cf58867906390986852.zip |
solaris endian changes
Diffstat (limited to 'rfb.h')
-rw-r--r-- | rfb.h | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -62,9 +62,22 @@ typedef unsigned long KeySym; #include <machine/endian.h> #define _BYTE_ORDER BYTE_ORDER #define _LITTLE_ENDIAN LITTLE_ENDIAN -#elif sparc +#elif defined (__SVR4) && defined (__sun) /* Solaris */ +#include <sys/types.h> +#if defined(__sparc) + /* SPARC here (big endian) */ +#ifndef _BIG_ENDIAN +#define _BIG_ENDIAN 4321 +#endif +#define _BYTE_ORDER _BIG_ENDIAN +#elif defined(__i386) +#ifndef _LITTLE_ENDIAN #define _LITTLE_ENDIAN 1234 +#endif #define _BYTE_ORDER _LITTLE_ENDIAN +#else +#error Solaris 2.5.1 had ppc support did it not? :-) +#endif #undef Bool #define Bool char #undef SIGNED |