]> code.delx.au - gnu-emacs/commitdiff
(main): Call syms_of_xmenu if and only if HAVE_MENUS.
authorRichard M. Stallman <rms@gnu.org>
Thu, 28 Dec 1995 23:14:23 +0000 (23:14 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 28 Dec 1995 23:14:23 +0000 (23:14 +0000)
src/emacs.c

index 08238e233d40bf6bdc699e533bd2756d06143da2..ad58cf57842adc2ef6e808fc51dbd47338c1775a 100644 (file)
@@ -865,16 +865,16 @@ Usage: %s [-t term] [--terminal term]  [-nw] [--no-windows]  [--batch]\n\
 #ifdef HAVE_X11
       syms_of_xselect ();
 #endif
-#ifdef HAVE_X_MENU
-      syms_of_xmenu ();
-#endif /* HAVE_X_MENU */
 #endif /* HAVE_X_WINDOWS */
 
 #if defined (MSDOS) && !defined (HAVE_X_WINDOWS)
       syms_of_xfaces ();
-      syms_of_xmenu ();
 #endif
 
+#ifdef HAVE_MENUS
+      syms_of_xmenu ();
+#endif /* HAVE_MENUS */
+
 #ifdef HAVE_NTGUI
       syms_of_win32term ();
       syms_of_win32fns ();