jdk/src/java.desktop/macosx/native/libawt_lwawt/awt/LWCToolkit.m
changeset 33653 c1ee09fe3274
parent 32875 eb8e90bef9aa
child 36462 dee5ee6606e2
equal deleted inserted replaced
32995:a62c89adce3d 33653:c1ee09fe3274
   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];