--- old/src/java.base/share/native/libjava/jni_util.h 2018-03-23 14:24:11.425158066 +0100 +++ new/src/java.base/share/native/libjava/jni_util.h 2018-03-23 14:24:11.205158068 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -395,8 +395,11 @@ void buildJniFunctionName(const char *sym, const char *cname, char *jniEntryName); -extern size_t getLastErrorString(char *buf, size_t len); -extern int getErrorString(int err, char *buf, size_t len); +JNIEXPORT size_t JNICALL +getLastErrorString(char *buf, size_t len); + +JNIEXPORT int JNICALL +getErrorString(int err, char *buf, size_t len); #ifdef STATIC_BUILD /* Macros for handling declaration of static/dynamic