Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Brown2001-08-09 20:21:11 -0400
committerJeff Brown2001-08-09 20:21:11 -0400
commit42cc2b63bcc1609173cc95c4e8e657cd5c614259 (patch)
tree541cd2a5490ee4047ba999b5b8eec956bccb1127 /bundles/org.eclipse.swt/Eclipse SWT/motif/library/swt.c
parent57465ab580f71d370f8b0c78d90e6e56d3419151 (diff)
downloadeclipse.platform.swt-42cc2b63bcc1609173cc95c4e8e657cd5c614259.tar.gz
eclipse.platform.swt-42cc2b63bcc1609173cc95c4e8e657cd5c614259.tar.xz
eclipse.platform.swt-42cc2b63bcc1609173cc95c4e8e657cd5c614259.zip
AIX support
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/motif/library/swt.c')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/motif/library/swt.c58
1 files changed, 31 insertions, 27 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/library/swt.c b/bundles/org.eclipse.swt/Eclipse SWT/motif/library/swt.c
index 82e87c3bf9..8772b9d45d 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/motif/library/swt.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/library/swt.c
@@ -7636,6 +7636,8 @@ JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_motif_OS_XSetIOErrorHandler
* ======== Start printing functions ========
*/
+#ifndef NO_XPRINTING_EXTENSIONS
+
/*
* Class: org_eclipse_swt_internal_motif_OS
* Method: XpCreateContext
@@ -7902,6 +7904,35 @@ JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_motif_OS_XpCancelJob
/*
* Class: org_eclipse_swt_internal_motif_OS
+ * Method: XpQueryVersion
+ * Signature: (I[S[S)I
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_motif_OS_XpQueryVersion
+ (JNIEnv *env, jclass that, jint display, jshortArray major_version, jshortArray minor_version)
+{
+ jshort *major_version1=NULL, *minor_version1=NULL;
+ jint rc;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "XpQueryVersion\n");
+#endif
+
+ if (major_version)
+ major_version1 = (*env)->GetShortArrayElements(env, major_version, NULL);
+ if (minor_version)
+ minor_version1 = (*env)->GetShortArrayElements(env, minor_version, NULL);
+ rc = (jint) XpQueryVersion((Display *)display, (short *)major_version1, (short *)minor_version1);
+ if (major_version)
+ (*env)->ReleaseShortArrayElements(env, major_version, major_version1, 0);
+ if (minor_version)
+ (*env)->ReleaseShortArrayElements(env, minor_version, minor_version1, 0);
+
+ return rc;
+}
+
+#endif
+
+/*
+ * Class: org_eclipse_swt_internal_motif_OS
* Method: XDefaultGCOfScreen
* Signature: (I)I
*/
@@ -7987,33 +8018,6 @@ JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_motif_OS_XDestroyWindow
}
/*
- * Class: org_eclipse_swt_internal_motif_OS
- * Method: XpQueryVersion
- * Signature: (I[S[S)I
- */
-JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_motif_OS_XpQueryVersion
- (JNIEnv *env, jclass that, jint display, jshortArray major_version, jshortArray minor_version)
-{
- jshort *major_version1=NULL, *minor_version1=NULL;
- jint rc;
-#ifdef DEBUG_CALL_PRINTS
- fprintf(stderr, "XpQueryVersion\n");
-#endif
-
- if (major_version)
- major_version1 = (*env)->GetShortArrayElements(env, major_version, NULL);
- if (minor_version)
- minor_version1 = (*env)->GetShortArrayElements(env, minor_version, NULL);
- rc = (jint) XpQueryVersion((Display *)display, (short *)major_version1, (short *)minor_version1);
- if (major_version)
- (*env)->ReleaseShortArrayElements(env, major_version, major_version1, 0);
- if (minor_version)
- (*env)->ReleaseShortArrayElements(env, minor_version, minor_version1, 0);
-
- return rc;
-}
-
-/*
* ======== End printing functions ========
*/

Back to the top