[SDL] Xinerama mouse issues?
Ryan C. Gordon
icculus at clutteredmind.org
Sat Sep 14 18:07:01 PDT 2002
Loren Osborn wrote:
> On Mon, 2002-09-02 at 17:07, Rainer Deyke wrote:
>> One quick hack that will probably solve your problem: #undef main.
>> Then call you 'main' function 'SDL_main' instead.
> This wouldn't work in environments like Unix that expect the main()
> function to be called "main"... :( Too bad there is no construct in
> the C preprocessor to temporarily supress a particular macro.
#define my_main SDL_main
#define my_main main
/* code here */
This will work on all systems.
Rainer Deyke | root at rainerdeyke.com | http://rainerdeyke.com
More information about the SDL