Skip to content

Commit

Permalink
windows linking fix for DS [fix]
Browse files Browse the repository at this point in the history
  • Loading branch information
hoijui committed Jul 8, 2010
1 parent 612bae3 commit 2d48299
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rts/builds/DS/main.cpp
Expand Up @@ -123,15 +123,17 @@ int main(int argc, char *argv[])
return 0;
}

#if defined(APPLE)
/**
* Required because of some SDL_main.h
* Required because of OS X libs, declared in SDL_main.h
* As we are not linking to SDL (using headless stubs instead),
* we need to provide this here.
*/
int SDL_main(int argc, char* argv[])
{
return main(argc, argv);
}
#endif // defined(APPLE)

#if defined(WIN32) && !defined(_MSC_VER)
int WINAPI WinMain(HINSTANCE hInstanceIn, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
Expand Down

0 comments on commit 2d48299

Please sign in to comment.