Stop calling __NSInitializeProcess explicitly

We're going to make it a constructor instead; this way it will get called
even if the app doesn't use NSApplicationMain().
This commit is contained in:
Sergey Bugaev 2018-08-11 08:02:25 +03:00
parent 3edd291389
commit 99d231c295

View File

@ -1326,7 +1326,9 @@ standardAboutPanel] retain];
int NSApplicationMain(int argc, const char *argv[]) {
#ifndef DARLING
__NSInitializeProcess(argc, argv);
#endif
NSAutoreleasePool *pool=[NSAutoreleasePool new];
NSBundle *bundle=[NSBundle mainBundle];