Skip to content

Commit

Permalink
Fixed building on Mac OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 15, 2009
1 parent c8b66a2 commit e3b0bc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/macosx/SDLMain.m
Expand Up @@ -201,7 +201,7 @@ static void CustomApplicationMain (int argc, char **argv)
SDLMain *sdlMain;

/* Ensure the application object is initialised */
[SDLApplication sharedApplication];
[NSApplication sharedApplication];

#ifdef SDL_USE_CPS
{
Expand All @@ -210,7 +210,7 @@ static void CustomApplicationMain (int argc, char **argv)
if (!CPSGetCurrentProcess(&PSN))
if (!CPSEnableForegroundOperation(&PSN,0x03,0x3C,0x2C,0x1103))
if (!CPSSetFrontProcess(&PSN))
[SDLApplication sharedApplication];
[NSApplication sharedApplication];
}
#endif /* SDL_USE_CPS */

Expand Down

0 comments on commit e3b0bc6

Please sign in to comment.