[SDL] SDL_main

Loren Osborn linux_dr at yahoo.com
Mon Sep 2 17:20:00 PDT 2002

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.


More information about the SDL mailing list