[SDL] Interesting mouse interactions in X11.
Ryan C. Gordon
icculus at clutteredmind.org
Sat Sep 14 17:33:01 PDT 2002
gtxayf1q001 at sneakemail.com wrote:
> #define main SDL_main
> Is this really necessary and great idea?
I don't like it either. Aside from messing up local identifiers, it
also prevents the use of other libraries that also subsume 'main', and
it depends on the relevant header file being included in the file that
defines 'main'. And it is quite unnecessary.
One quick hack that will probably solve your problem: #undef main.
Then call you 'main' function 'SDL_main' instead.
Rainer Deyke | root at rainerdeyke.com | http://rainerdeyke.com
More information about the SDL