From 8a5f8f25902812ef75105e3f6fac6f05d0235d9a Mon Sep 17 00:00:00 2001
From: dscho <dscho>
Date: Mon, 17 Feb 2003 16:03:52 +0000
Subject: export rfbReverseBytes; undefine VERSION, because it's too common

---
 cursor.c      | 4 +---
 include/rfb.h | 2 ++
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cursor.c b/cursor.c
index 032d2c4..786ee02 100644
--- a/cursor.c
+++ b/cursor.c
@@ -24,8 +24,6 @@
 
 #include "rfb.h"
 
-static unsigned char rfbReverseByte[0x100];
-
 /*
  * Send cursor shape either in X-style format or in client pixel format.
  */
@@ -208,7 +206,7 @@ rfbSendCursorPos(rfbClientPtr cl)
 }
 
 /* conversion routine for predefined cursors in LSB order */
-static unsigned char rfbReverseByte[0x100] = {
+unsigned char rfbReverseByte[0x100] = {
   /* copied from Xvnc/lib/font/util/utilbitmap.c */
 	0x00, 0x80, 0x40, 0xc0, 0x20, 0xa0, 0x60, 0xe0,
 	0x10, 0x90, 0x50, 0xd0, 0x30, 0xb0, 0x70, 0xf0,
diff --git a/include/rfb.h b/include/rfb.h
index 1c8e395..8d75af1 100644
--- a/include/rfb.h
+++ b/include/rfb.h
@@ -36,6 +36,7 @@ extern "C"
 #include <stdlib.h>
 #include <string.h>
 #include "rfbconfig.h"
+#undef VERSION
 #include "rfbint.h"
 #include "keysym.h"
 
@@ -690,6 +691,7 @@ typedef struct rfbCursor {
     unsigned short backRed, backGreen, backBlue; /* device-independent colour */
     unsigned char *richSource; /* source bytes for a rich cursor */
 } rfbCursor, *rfbCursorPtr;
+extern unsigned char rfbReverseByte[0x100];
 
 extern Bool rfbSendCursorShape(rfbClientPtr cl/*, rfbScreenInfoPtr pScreen*/);
 extern Bool rfbSendCursorPos(rfbClientPtr cl);
-- 
cgit v1.2.3

