Check build-time SDK in LoadMainMenuNibIfAvailable
Fixes building against OS X 10.7 SDK.main
parent
d2910904fb
commit
f8cebeea59
|
@ -333,6 +333,7 @@ GetApplicationName(void)
|
|||
static bool
|
||||
LoadMainMenuNibIfAvailable(void)
|
||||
{
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1080
|
||||
NSDictionary *infoDict;
|
||||
NSString *mainNibFileName;
|
||||
bool success = false;
|
||||
|
@ -350,6 +351,9 @@ LoadMainMenuNibIfAvailable(void)
|
|||
}
|
||||
|
||||
return success;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue