summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordscho <dscho>2004-06-08 19:13:06 +0000
committerdscho <dscho>2004-06-08 19:13:06 +0000
commit68422b630936d61dff8a489168417cd4f7c34161 (patch)
tree444b18a8d8211ef20f71c05bf5818ebdafba9d6f
parent120500f7a37109017e78cc34249b77cf22313238 (diff)
downloadlibvncserver-68422b630936d61dff8a489168417cd4f7c34161.zip
libvncserver-68422b630936d61dff8a489168417cd4f7c34161.tar.gz
fix compilation on MacOSX
-rw-r--r--client_examples/SDLvncviewer.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/client_examples/SDLvncviewer.c b/client_examples/SDLvncviewer.c
index 69809d3..9dfc8f3 100644
--- a/client_examples/SDLvncviewer.c
+++ b/client_examples/SDLvncviewer.c
@@ -179,15 +179,14 @@ rfbKeySym SDL_keysym2rfbKeySym(int keysym) {
}
}
-#define main main1
-#include "ppmtest.c"
-#undef main
-
void update(rfbClient* cl,int x,int y,int w,int h) {
SDL_UpdateRect(cl->clientData, x, y, w, h);
- SaveFramebufferAsPPM(cl,x,y,w,h);
}
+#ifdef mac
+#define main SDLmain
+#endif
+
int main(int argc,char** argv) {
rfbClient* cl;
int i,buttonMask=0;
OpenPOWER on IntegriCloud