aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu.c
diff options
context:
space:
mode:
authorDaniel Colascione2012-08-31 22:38:52 -0800
committerDaniel Colascione2012-08-31 22:38:52 -0800
commit17a2cbbd76385d0be8a4b28974e64f4debf459c1 (patch)
treec9d9f61e8580269679c9583ee94ccd812cca5790 /src/menu.c
parentc650a5dec69902c684c5333befd35da6c518c5e0 (diff)
downloademacs-17a2cbbd76385d0be8a4b28974e64f4debf459c1.tar.gz
emacs-17a2cbbd76385d0be8a4b28974e64f4debf459c1.zip
Refactor window-system configuration
This change streamlines the window system selection code in configure.in and moves many common function declarations from window-specific headers to frame.h. It introduces a new TERM_HEADER macro in config.h: we set this macro to the right header to use for the window system for which we're compiling Emacs and have source files include it indirectly. This way, we don't have to teach every file about every window system.
Diffstat (limited to 'src/menu.c')
-rw-r--r--src/menu.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/menu.c b/src/menu.c
index 3e466b46aa3..20770537326 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -36,24 +36,13 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
36#include "../lwlib/lwlib.h" 36#include "../lwlib/lwlib.h"
37#endif 37#endif
38 38
39#ifdef HAVE_X_WINDOWS 39#ifdef HAVE_WINDOW_SYSTEM
40#include "xterm.h" 40#include TERM_HEADER
41#endif 41#endif /* HAVE_WINDOW_SYSTEM */
42
43#ifdef HAVE_NS
44#include "nsterm.h"
45#endif
46
47#ifdef USE_GTK
48#include "gtkutil.h"
49#endif
50 42
51#ifdef HAVE_NTGUI 43#ifdef HAVE_NTGUI
52#include "w32term.h"
53
54extern AppendMenuW_Proc unicode_append_menu; 44extern AppendMenuW_Proc unicode_append_menu;
55extern HMENU current_popup_menu; 45extern HMENU current_popup_menu;
56
57#endif /* HAVE_NTGUI */ 46#endif /* HAVE_NTGUI */
58 47
59#include "menu.h" 48#include "menu.h"