From: Dmitry Antipov Date: Thu, 5 Sep 2013 12:08:50 +0000 (+0400) Subject: * fontset.c, window.c, xdisp.c (toplevel): Use TERM_HEADER. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~1666 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=667383058ff503073f9e094ab3c88280748857ef;p=emacs.git * fontset.c, window.c, xdisp.c (toplevel): Use TERM_HEADER. * xfaces.c (toplevel) [HAVE_X_WINDOWS]: Do not include xterm.h twice. --- diff --git a/src/ChangeLog b/src/ChangeLog index 3ef8bee2f0b..d4a7abefd57 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2013-09-05 Dmitry Antipov + + * fontset.c, window.c, xdisp.c (toplevel): Use TERM_HEADER. + * xfaces.c (toplevel) [HAVE_X_WINDOWS]: Do not include xterm.h twice. + 2013-09-05 Dmitry Antipov Make --without-x compatible with --enable-gcc-warnings. diff --git a/src/fontset.c b/src/fontset.c index a6277b050d5..797d51ac0a7 100644 --- a/src/fontset.c +++ b/src/fontset.c @@ -39,17 +39,10 @@ along with GNU Emacs. If not, see . */ #include "intervals.h" #include "fontset.h" #include "window.h" -#ifdef HAVE_X_WINDOWS -#include "xterm.h" -#endif -#ifdef HAVE_NTGUI -#include "w32term.h" -#endif -#ifdef HAVE_NS -#include "nsterm.h" -#endif +#ifdef HAVE_WINDOW_SYSTEM +#include TERM_HEADER +#endif /* HAVE_WINDOW_SYSTEM */ #include "termhooks.h" - #include "font.h" /* FONTSET diff --git a/src/window.c b/src/window.c index ef96861dc71..d8a6976e090 100644 --- a/src/window.c +++ b/src/window.c @@ -39,19 +39,12 @@ along with GNU Emacs. If not, see . */ #include "blockinput.h" #include "intervals.h" #include "termhooks.h" /* For FRAME_TERMINAL. */ - -#ifdef HAVE_X_WINDOWS -#include "xterm.h" -#endif /* HAVE_X_WINDOWS */ -#ifdef HAVE_NTGUI -#include "w32term.h" -#endif +#ifdef HAVE_WINDOW_SYSTEM +#include TERM_HEADER +#endif /* HAVE_WINDOW_SYSTEM */ #ifdef MSDOS #include "msdos.h" #endif -#ifdef HAVE_NS -#include "nsterm.h" -#endif Lisp_Object Qwindowp, Qwindow_live_p; static Lisp_Object Qwindow_valid_p; diff --git a/src/xdisp.c b/src/xdisp.c index d68362576fa..c096fcd340f 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -299,19 +299,9 @@ along with GNU Emacs. If not, see . */ #include "font.h" #include "fontset.h" #include "blockinput.h" - -#ifdef HAVE_X_WINDOWS -#include "xterm.h" -#endif -#ifdef HAVE_NTGUI -#include "w32term.h" -#endif -#ifdef HAVE_NS -#include "nsterm.h" -#endif -#ifdef USE_GTK -#include "gtkutil.h" -#endif +#ifdef HAVE_WINDOW_SYSTEM +#include TERM_HEADER +#endif /* HAVE_WINDOW_SYSTEM */ #ifndef FRAME_X_OUTPUT #define FRAME_X_OUTPUT(f) ((f)->output_data.x) diff --git a/src/xfaces.c b/src/xfaces.c index 0a117b83c15..e8cb7a70322 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -211,13 +211,10 @@ along with GNU Emacs. If not, see . */ #include "frame.h" #include "termhooks.h" -#ifdef HAVE_X_WINDOWS -#include "xterm.h" #ifdef USE_MOTIF #include #include #endif /* USE_MOTIF */ -#endif /* HAVE_X_WINDOWS */ #ifdef MSDOS #include "dosfns.h"