From 0fdff6bbc25853de0b683ca3234435091a056682 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 11 Nov 1995 07:13:06 +0000 Subject: [PATCH] (HACK_EDITRES): Define here as in xfns.c. (XTread_socket): Test HACK_EDITRES. --- src/xterm.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/xterm.c b/src/xterm.c index 8a16fcbae72..eb79e883d02 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -85,8 +85,11 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifdef USE_X_TOOLKIT extern void free_frame_menubar (); -extern void _XEditResCheckMessages (); extern FRAME_PTR x_menubar_window_to_frame (); +#if (XtSpecificationRelease >= 5) && !defined(NO_EDITRES) +#define HACK_EDITRES +extern void _XEditResCheckMessages (); +#endif /* not NO_EDITRES */ #endif /* USE_X_TOOLKIT */ #ifndef USE_X_TOOLKIT @@ -3420,7 +3423,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected) f->output_data.x->top_pos = new_y; } } -#if defined (USE_X_TOOLKIT) && defined (HAVE_X11R5) +#ifdef HACK_EDITRES else if (event.xclient.message_type == dpyinfo->Xatom_editres) { @@ -3429,7 +3432,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected) _XEditResCheckMessages (f->output_data.x->widget, NULL, &event, NULL); } -#endif /* USE_X_TOOLKIT and HAVE_X11R5 */ +#endif /* HACK_EDITRES */ } break; -- 2.39.2