From e3b0bc6ceebdf08ce8e96e6c0309a071e30d5661 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 15 Oct 2009 05:18:48 +0000 Subject: [PATCH] Fixed building on Mac OS X --- src/main/macosx/SDLMain.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/macosx/SDLMain.m b/src/main/macosx/SDLMain.m index 3e99e71a4..2434f81aa 100644 --- a/src/main/macosx/SDLMain.m +++ b/src/main/macosx/SDLMain.m @@ -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 { @@ -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 */