зеркало из https://github.com/mozilla/pjs.git
fix mach-o bustage: to cope with header skew between Mac OS X headers and Universal headers, use explicit cast to AEEventHandlerProcPtr.
This commit is contained in:
Родитель
5befe1d328
Коммит
a57b889f42
|
@ -456,7 +456,8 @@ int main(int argc, char **argv)
|
|||
|
||||
// Install an a Quit AppleEvent handler.
|
||||
OSErr err = AEInstallEventHandler(kCoreEventClass, kAEQuitApplication,
|
||||
NewAEEventHandlerUPP(handleQuitApplication), 0, false);
|
||||
NewAEEventHandlerUPP(AEEventHandlerProcPtr(handleQuitApplication)),
|
||||
0, false);
|
||||
NS_ASSERTION((err==noErr), "AEInstallEventHandler failed");
|
||||
|
||||
#ifdef XP_MACOSX
|
||||
|
|
Загрузка…
Ссылка в новой задаче