Fixed some minor compile warnings for OSX.

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2853 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2014-02-17 00:11:01 +00:00
parent 14c8546ce1
commit 46733e32c0
3 changed files with 4 additions and 7 deletions

View File

@ -44,7 +44,7 @@ void EventHandlerSDL2::initializeJoysticks()
}
int numSticks = SDL_NumJoysticks();
for(uInt32 i = 0; i < numSticks; ++i)
for(int i = 0; i < numSticks; ++i)
addJoystick(new JoystickSDL2(i), i);
#endif
}

View File

@ -41,12 +41,6 @@
#include "CheatManager.hxx"
#endif
#if defined(BSPF_MAC_OSX)
extern "C" {
int stellaMain(int argc, char* argv[]);
}
#endif
// Pointer to the main parent osystem object or the null pointer
OSystem* theOSystem = (OSystem*) NULL;

View File

@ -31,6 +31,9 @@
#elif defined(BSPF_MAC_OSX)
#include "SettingsMACOSX.hxx"
#include "OSystemMACOSX.hxx"
extern "C" {
int stellaMain(int argc, char* argv[]);
}
#else
#error Unsupported platform!
#endif