src/java.desktop/unix/native/libawt/awt/awt_LoadLibrary.c
changeset 49440 396ea30afbd5
parent 47216 71c04702a3d5
equal deleted inserted replaced
49439:bf53d82a51e5 49440:396ea30afbd5
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2018, 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
    47 
    47 
    48 typedef jint JNICALL JNI_OnLoad_type(JavaVM *vm, void *reserved);
    48 typedef jint JNICALL JNI_OnLoad_type(JavaVM *vm, void *reserved);
    49 
    49 
    50 /* Initialize the Java VM instance variable when the library is
    50 /* Initialize the Java VM instance variable when the library is
    51    first loaded */
    51    first loaded */
    52 JavaVM *jvm;
    52 JNIEXPORT JavaVM *jvm;
    53 
    53 
    54 JNIEXPORT jboolean JNICALL AWTIsHeadless() {
    54 JNIEXPORT jboolean JNICALL AWTIsHeadless() {
    55     static JNIEnv *env = NULL;
    55     static JNIEnv *env = NULL;
    56     static jboolean isHeadless;
    56     static jboolean isHeadless;
    57     jmethodID headlessFn;
    57     jmethodID headlessFn;