Compile problems on Mac OS X
Adrian Umpleby
a.umpleby@imperial.ac.uk
Mon Jun 2 11:36:01 2003
Hi all,
Wish I'd noticed this thread over the weekend, else I would have got
back sooner with a much simpler fix for you that I used quite a while
ago to get vncviewer going under OS X...
The basic problem appears to be with the definition of GET_PIXEL in
hextile.c - my guess is that it does not like the fact that GET_PIXEL
is being defined, but is also part of that definition...?
i.e. this line in hextile.c:
#define GET_PIXEL CONCAT2E(GET_PIXEL,BPP)
The simple fix is to change GET_PIXEL to something else, like
GET_PIXELBPP:
#define GET_PIXELBPP CONCAT2E(GET_PIXEL,BPP)
Then change the line in hextile.c that uses GET_PIXEL from:
GET_PIXEL(fg, ptr);
to
GET_PIXELBPP(fg, ptr);
All should then compile fine!
(Hey vnc developers - might be well worth fixing this in the vnc
source...)
Adrian