Attempt to fix OSX missing _main symbol error

This commit is contained in:
Robert Osfield
2009-05-12 12:27:54 +00:00
parent c98466d401
commit e179ecc69d

View File

@@ -391,6 +391,12 @@ void SDLAudioSink::soundReadCallback(void * const user_data, Uint8 * const data,
#endif
#if defined(USE_SDL) && defined(__APPLE__)
// SDL under OSX causes a link error with a unresolved _main symbol
// so we have to add this dummy implementation to get round it.
main() {}
#endif
int main(int argc, char** argv)
{
// use an ArgumentParser object to manage the program arguments.