SDLMain on Mac OS X

Hello,

I’ve been looking through the SDL source a bit, planning my iPhone
port, and I’m trying to understand the following:

Is there a specific reason why SDLMain is a separate set of files / a
separate library on Mac OS X?

Ideally when setting up SDL for a new platform, should this type of
stuff go into src/main/“new platform” ?

thanks,

  • Holmes

SDLMain.m is part of that 'int main(int argc, char* argv[])'
redefining that follows the pattern of the DirectX5 code which I think
boils down to about how to get control of the main application loop.
There are technical, judgmental, and historical artifacts to explain
why it the way it is currently.

I think Sam fixed this in SDL 1.3 so SDLMain is no longer needed on OS
X. If your stuff is based on 1.3, I suspect you should be able to skip
this too.

-EricOn 5/24/08, Holmes Futrell wrote:

Hello,

I’ve been looking through the SDL source a bit, planning my iPhone
port, and I’m trying to understand the following:

Is there a specific reason why SDLMain is a separate set of files / a
separate library on Mac OS X?

Ideally when setting up SDL for a new platform, should this type of
stuff go into src/main/“new platform” ?

thanks,

  • Holmes