diff options
| author | Daniel Colascione | 2012-08-31 22:38:52 -0800 |
|---|---|---|
| committer | Daniel Colascione | 2012-08-31 22:38:52 -0800 |
| commit | 17a2cbbd76385d0be8a4b28974e64f4debf459c1 (patch) | |
| tree | c9d9f61e8580269679c9583ee94ccd812cca5790 /src/font.c | |
| parent | c650a5dec69902c684c5333befd35da6c518c5e0 (diff) | |
| download | emacs-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/font.c')
| -rw-r--r-- | src/font.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/font.c b/src/font.c index 5b9e4f1cfcf..cf9964f08f3 100644 --- a/src/font.c +++ b/src/font.c | |||
| @@ -38,17 +38,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 38 | #include "fontset.h" | 38 | #include "fontset.h" |
| 39 | #include "font.h" | 39 | #include "font.h" |
| 40 | 40 | ||
| 41 | #ifdef HAVE_X_WINDOWS | 41 | #ifdef HAVE_WINDOW_SYSTEM |
| 42 | #include "xterm.h" | 42 | #include TERM_HEADER |
| 43 | #endif /* HAVE_X_WINDOWS */ | 43 | #endif /* HAVE_WINDOW_SYSTEM */ |
| 44 | |||
| 45 | #ifdef HAVE_NTGUI | ||
| 46 | #include "w32term.h" | ||
| 47 | #endif /* HAVE_NTGUI */ | ||
| 48 | |||
| 49 | #ifdef HAVE_NS | ||
| 50 | #include "nsterm.h" | ||
| 51 | #endif /* HAVE_NS */ | ||
| 52 | 44 | ||
| 53 | Lisp_Object Qopentype; | 45 | Lisp_Object Qopentype; |
| 54 | 46 | ||