summaryrefslogtreecommitdiffstats
path: root/rfb.h
diff options
context:
space:
mode:
authordscho <dscho>2001-11-18 21:58:58 +0000
committerdscho <dscho>2001-11-18 21:58:58 +0000
commite0168dbd9ae5e598f6564aa811cdb252330524c1 (patch)
tree31e899f132a91910c7a0090803a225bc6e9cfbfb /rfb.h
parent4415df9540afd86671f9169c1542536c71000180 (diff)
downloadlibtdevnc-e0168dbd.tar.gz
libtdevnc-e0168dbd.zip
start x11vnc, an x0rfbserver clone
Diffstat (limited to 'rfb.h')
-rw-r--r--rfb.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/rfb.h b/rfb.h
index 92d4522..358d26e 100644
--- a/rfb.h
+++ b/rfb.h
@@ -37,7 +37,8 @@ typedef unsigned char CARD8;
typedef unsigned short CARD16;
typedef unsigned int CARD32;
typedef CARD32 Pixel;
-typedef CARD32 KeySym;
+/* typedef CARD32 KeySym; */
+typedef unsigned long KeySym;
#define SIGNED signed
/* for some strange reason, "typedef signed char Bool;" yields a four byte
signed int on IRIX, but only for rfbserver.o!!! */
@@ -518,7 +519,7 @@ typedef struct rfbClientRec {
((l) << 24))
-static const int rfbEndianTest = (_BYTE_ORDER == _LITTLE_ENDIAN);
+extern char rfbEndianTest;
#define Swap16IfLE(s) (rfbEndianTest ? Swap16(s) : (s))
#define Swap24IfLE(l) (rfbEndianTest ? Swap24(l) : (l))