equal
deleted
inserted
replaced
738 [AWTStarter start:headless ? YES : NO]; |
738 [AWTStarter start:headless ? YES : NO]; |
739 |
739 |
740 JNF_COCOA_EXIT(env) |
740 JNF_COCOA_EXIT(env) |
741 } |
741 } |
742 |
742 |
743 JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *reserved) { |
743 JNIEXPORT jint JNICALL DEF_JNI_OnLoad(JavaVM *vm, void *reserved) { |
744 OSXAPP_SetJavaVM(vm); |
744 OSXAPP_SetJavaVM(vm); |
745 |
745 |
746 // We need to let Foundation know that this is a multithreaded application, if it isn't already. |
746 // We need to let Foundation know that this is a multithreaded application, if it isn't already. |
747 if (![NSThread isMultiThreaded]) { |
747 if (![NSThread isMultiThreaded]) { |
748 [NSThread detachNewThreadSelector:nil toTarget:nil withObject:nil]; |
748 [NSThread detachNewThreadSelector:nil toTarget:nil withObject:nil]; |