Commit 68422b63 authored by dscho's avatar dscho

fix compilation on MacOSX

parent 120500f7
...@@ -179,15 +179,14 @@ rfbKeySym SDL_keysym2rfbKeySym(int keysym) { ...@@ -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) { void update(rfbClient* cl,int x,int y,int w,int h) {
SDL_UpdateRect(cl->clientData, x, y, w, 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) { int main(int argc,char** argv) {
rfbClient* cl; rfbClient* cl;
int i,buttonMask=0; int i,buttonMask=0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment