Commit 43facbc8 authored by DanmeiChen's avatar DanmeiChen
Browse files

fix: for recent xcode, compilation error[null passed to a callee that requires a non-null argument]

parent 84330c27
...@@ -58,7 +58,7 @@ int main(int argc, char * argv[]) { ...@@ -58,7 +58,7 @@ int main(int argc, char * argv[]) {
g_argv=argv; g_argv=argv;
pthread_create(&main_thread,NULL,_apple_main,NULL); pthread_create(&main_thread,NULL,_apple_main,NULL);
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
int value = UIApplicationMain(0, nil, nil, nil); int value = UIApplicationMain(argc, argv, nil, nil);
[pool release]; [pool release];
return value; return value;
pthread_join(main_thread,NULL); pthread_join(main_thread,NULL);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment