mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Merge pull request #15 from sampottinger/jna_interface_fix
Migrate to JNA 5 compatiable Native.load.
This commit is contained in:
@@ -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" +
|
||||
|
||||
Reference in New Issue
Block a user