jdk/src/java.desktop/windows/native/libawt/windows/awt_Toolkit.cpp
changeset 33653 c1ee09fe3274
parent 26751 70bac69b37c9
child 34405 d152b09f62ba
equal deleted inserted replaced
32995:a62c89adce3d 33653:c1ee09fe3274
     1 /*
     1 /*
     2  * Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    89 /* Initialize the Java VM instance variable when the library is
    89 /* Initialize the Java VM instance variable when the library is
    90    first loaded */
    90    first loaded */
    91 JavaVM *jvm = NULL;
    91 JavaVM *jvm = NULL;
    92 
    92 
    93 JNIEXPORT jint JNICALL
    93 JNIEXPORT jint JNICALL
    94 JNI_OnLoad(JavaVM *vm, void *reserved)
    94 DEF_JNI_OnLoad(JavaVM *vm, void *reserved)
    95 {
    95 {
    96     TRY;
    96     TRY;
    97 
    97 
    98     jvm = vm;
    98     jvm = vm;
    99     return JNI_VERSION_1_2;
    99     return JNI_VERSION_1_2;