changeset 13507:9a9f459075af

(HACK_EDITRES): Define here as in xfns.c. (XTread_socket): Test HACK_EDITRES.
author Richard M. Stallman <rms@gnu.org>
date Sat, 11 Nov 1995 07:13:06 +0000
parents 6360f5543071
children b64345cf1ee9
files src/xterm.c
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Sat Nov 11 07:06:05 1995 +0000
+++ b/src/xterm.c	Sat Nov 11 07:13:06 1995 +0000
@@ -85,8 +85,11 @@
 
 #ifdef USE_X_TOOLKIT
 extern void free_frame_menubar ();
+extern FRAME_PTR x_menubar_window_to_frame ();
+#if (XtSpecificationRelease >= 5) && !defined(NO_EDITRES)
+#define HACK_EDITRES
 extern void _XEditResCheckMessages ();
-extern FRAME_PTR x_menubar_window_to_frame ();
+#endif /* not NO_EDITRES */
 #endif /* USE_X_TOOLKIT */
 
 #ifndef USE_X_TOOLKIT
@@ -3420,7 +3423,7 @@
 			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 @@
 		    _XEditResCheckMessages (f->output_data.x->widget, NULL,
 					    &event, NULL);
 		  }
-#endif /* USE_X_TOOLKIT and HAVE_X11R5 */
+#endif /* HACK_EDITRES */
 	      }
 	      break;