Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2012-03-29 21:23:51 +0000
committerSilenio Quarti2012-03-29 21:23:51 +0000
commitc742be31d3e1604d8d4956fde8d816377bf5b0d0 (patch)
treef8007e1774c53cdff7359a0c1b58e96e20fff409 /bundles/org.eclipse.swt/Eclipse SWT WebKit
parent58df76a2e50f26900ab1ed223960bfd79d3eba45 (diff)
downloadeclipse.platform.swt-c742be31d3e1604d8d4956fde8d816377bf5b0d0.tar.gz
eclipse.platform.swt-c742be31d3e1604d8d4956fde8d816377bf5b0d0.tar.xz
eclipse.platform.swt-c742be31d3e1604d8d4956fde8d816377bf5b0d0.zip
need to be able to overwrite native package name (actual code)
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT WebKit')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk.c2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT WebKit/win32/library/webkit_win32.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk.c b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk.c
index a9dbb96488..0d8b934041 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk.c
@@ -17,7 +17,9 @@
#include "webkitgtk_structs.h"
#include "webkitgtk_stats.h"
+#ifndef WebKitGTK_NATIVE
#define WebKitGTK_NATIVE(func) Java_org_eclipse_swt_internal_webkit_WebKitGTK_##func
+#endif
#ifndef NO_JSClassDefinition_1sizeof
JNIEXPORT jint JNICALL WebKitGTK_NATIVE(JSClassDefinition_1sizeof)
diff --git a/bundles/org.eclipse.swt/Eclipse SWT WebKit/win32/library/webkit_win32.cpp b/bundles/org.eclipse.swt/Eclipse SWT WebKit/win32/library/webkit_win32.cpp
index 443ac1ba82..e0250ad096 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT WebKit/win32/library/webkit_win32.cpp
+++ b/bundles/org.eclipse.swt/Eclipse SWT WebKit/win32/library/webkit_win32.cpp
@@ -17,7 +17,9 @@
#include "webkit_win32_structs.h"
#include "webkit_win32_stats.h"
+#ifndef WebKit_win32_NATIVE
#define WebKit_win32_NATIVE(func) Java_org_eclipse_swt_internal_webkit_WebKit_1win32_##func
+#endif
#ifndef NO_CFArrayGetCount
extern "C" JNIEXPORT jint JNICALL WebKit_win32_NATIVE(CFArrayGetCount)(JNIEnv *env, jclass that, jintLong arg0);

Back to the top