# HG changeset patch # User Richard M. Stallman # Date 1059500301 0 # Node ID 039e1c55561eef03e5c57e3abd9f4d8de9200467 # Parent cda0be6a71384aac1978c4c22adbeede49720a1d (xim_open_dpy, xim_initialize, xim_close_dpy): Conditionalize XIM code on HAVE_XIM. diff -r cda0be6a7138 -r 039e1c55561e src/xterm.c --- 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 */