Merge pull request #15 from sampottinger/jna_interface_fix

Migrate to JNA 5 compatiable Native.load.
This commit is contained in:
Ben Fry
2019-11-15 12:30:24 -05:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
@@ -129,7 +129,7 @@ public class DefaultPlatform {
public interface CLibrary extends Library {
CLibrary INSTANCE = Native.loadLibrary("c", CLibrary.class);
CLibrary INSTANCE = Native.load("c", CLibrary.class);
int setenv(String name, String value, int overwrite);
String getenv(String name);
int unsetenv(String name);
@@ -560,7 +560,7 @@ public class WindowsPlatform extends DefaultPlatform {
static WinLibC getLibC() {
if (clib == null) {
try {
clib = Native.loadLibrary("msvcrt", WinLibC.class);
clib = Native.load("msvcrt", WinLibC.class);
} catch (UnsatisfiedLinkError ule) {
Messages.showTrace("JNA Error",
"JNA could not be loaded. Please report here:\n" +