diff options
author | Silenio Quarti <silenio> | 2008-09-05 14:07:12 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2008-09-05 14:07:12 +0000 |
commit | da66ed50e7f2fec0e5faf4b617a73367a0acde7d (patch) | |
tree | 6e5b8f301d020339c0119d3e6398dba16c5eac3a /bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/library | |
parent | dc99d9bb9843280e22befd705fd4e0f15ba22ec9 (diff) | |
download | eclipse.platform.swt-da66ed50e7f2fec0e5faf4b617a73367a0acde7d.tar.gz eclipse.platform.swt-da66ed50e7f2fec0e5faf4b617a73367a0acde7d.tar.xz eclipse.platform.swt-da66ed50e7f2fec0e5faf4b617a73367a0acde7d.zip |
Mac generator and building 64 bit enabled C code
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/library')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/library/swt_awt.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/library/swt_awt.c b/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/library/swt_awt.c index ffa8ef23b4..1059680e36 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/library/swt_awt.c +++ b/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/library/swt_awt.c @@ -1,13 +1,13 @@ -/*******************************************************************************
- * Copyright (c) 2000, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
+/******************************************************************************* + * Copyright (c) 2000, 2007 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ #include "swt.h" #include "jawt_md.h" @@ -15,14 +15,14 @@ #define SWT_AWT_NATIVE(func) Java_org_eclipse_swt_awt_SWT_1AWT_##func #ifndef NO_getAWTHandle -JNIEXPORT SWT_PTR JNICALL SWT_AWT_NATIVE(getAWTHandle) +JNIEXPORT jintLong JNICALL SWT_AWT_NATIVE(getAWTHandle) (JNIEnv *env, jclass that, jobject canvas) { JAWT awt; JAWT_DrawingSurface* ds; JAWT_DrawingSurfaceInfo* dsi; JAWT_X11DrawingSurfaceInfo* dsi_x11; - SWT_PTR result = 0; + jintLong result = 0; jint lock; awt.version = JAWT_VERSION_1_3; @@ -33,7 +33,7 @@ JNIEXPORT SWT_PTR JNICALL SWT_AWT_NATIVE(getAWTHandle) if ((lock & JAWT_LOCK_ERROR) == 0) { dsi = ds->GetDrawingSurfaceInfo(ds); dsi_x11 = (JAWT_X11DrawingSurfaceInfo*)dsi->platformInfo; - result = (SWT_PTR)dsi_x11->drawable; + result = (jintLong)dsi_x11->drawable; ds->FreeDrawingSurfaceInfo(dsi); ds->Unlock(ds); } |