changeset 52076:039e1c55561e

(xim_open_dpy, xim_initialize, xim_close_dpy): Conditionalize XIM code on HAVE_XIM.
author Richard M. Stallman <rms@gnu.org>
date Tue, 29 Jul 2003 17:38:21 +0000
parents cda0be6a7138
children 00e4f19cb4e2
files src/xterm.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Tue Jul 29 17:36:52 2003 +0000
+++ b/src/xterm.c	Tue Jul 29 17:38:21 2003 +0000
@@ -8024,6 +8024,7 @@
 {
   XIM xim;
 
+#ifdef HAVE_XIM
   if (use_xim)
     {
       xim = XOpenIM (dpyinfo->display, dpyinfo->xrdb, resource_name,
@@ -8048,6 +8049,7 @@
     }
 
   else
+#endif /* HAVE_XIM */
     dpyinfo->xim = NULL;
 }
 
@@ -8122,6 +8124,7 @@
      struct x_display_info *dpyinfo;
      char *resource_name;
 {
+#ifdef HAVE_XIM
   if (use_xim)
     {
 #ifdef HAVE_X11R6_XIM
@@ -8148,6 +8151,7 @@
 
     }
   else
+#endif /* HAVE_XIM */
     dpyinfo->xim = NULL;
 }
 
@@ -8158,6 +8162,7 @@
 xim_close_dpy (dpyinfo)
      struct x_display_info *dpyinfo;
 {
+#ifdef HAVE_XIM
   if (use_xim)
     {
 #ifdef HAVE_X11R6_XIM
@@ -8171,6 +8176,7 @@
       dpyinfo->xim = NULL;
       XFree (dpyinfo->xim_styles);
     }
+#endif /* HAVE_XIM */
 }
 
 #endif /* not HAVE_X11R6_XIM */