Remove dependency on Java Native Foundation framework, remove non
working JAWT manually loading, change to use headers from JavaVM.framework when compiling due to JDK7 bug
This commit is contained in:
parent
14de6c518d
commit
c53e957833
File diff suppressed because one or more lines are too long
|
@ -49,19 +49,6 @@ final class MacOSXSysImplementation extends J2SESysImplementation {
|
|||
static {
|
||||
// Manually start the AWT Application Loop
|
||||
java.awt.Toolkit.getDefaultToolkit();
|
||||
|
||||
// manually load libjawt.dylib into vm, needed since Java 7
|
||||
AccessController.doPrivileged(new PrivilegedAction<Object>() {
|
||||
public Object run() {
|
||||
try {
|
||||
System.loadLibrary("jawt");
|
||||
} catch (UnsatisfiedLinkError e) {
|
||||
// catch and ignore an already loaded in another classloader
|
||||
// exception, as vm already has it loaded
|
||||
}
|
||||
return null;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public int getRequiredJNIVersion() {
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#include <jni.h>
|
||||
#include <jawt_md.h>
|
||||
#include <JavaVM/jawt_md.h>
|
||||
#include "awt_tools.h"
|
||||
#include "org_lwjgl_opengl_MacOSXCanvasPeerInfo.h"
|
||||
#include "context.h"
|
||||
|
|
Loading…
Reference in New Issue