mirror of https://github.com/encounter/SDL.git
Check build-time SDK in LoadMainMenuNibIfAvailable
Fixes building against OS X 10.7 SDK. (cherry picked from commit f8cebeea599ae65f36d388257a9d9a8ed8ada576)
This commit is contained in:
parent
72823dd0cd
commit
66620bd108
|
@ -333,6 +333,7 @@ GetApplicationName(void)
|
||||||
static bool
|
static bool
|
||||||
LoadMainMenuNibIfAvailable(void)
|
LoadMainMenuNibIfAvailable(void)
|
||||||
{
|
{
|
||||||
|
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1080
|
||||||
NSDictionary *infoDict;
|
NSDictionary *infoDict;
|
||||||
NSString *mainNibFileName;
|
NSString *mainNibFileName;
|
||||||
bool success = false;
|
bool success = false;
|
||||||
|
@ -350,6 +351,9 @@ LoadMainMenuNibIfAvailable(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
return success;
|
return success;
|
||||||
|
#else
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue