Mercurial > emacs
changeset 55903:822bab94f6a3
(x_supports_face_attributes_p): Make this function
conditional on HAVE_WINDOW_SYSTEM.
(Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]: Don't
call x_supports_face_attributes_p if it was not compiled in.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Fri, 04 Jun 2004 15:56:53 +0000 |
parents | 084530cb1b2f |
children | f3be7c4dc1e6 |
files | src/xfaces.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xfaces.c Fri Jun 04 10:12:53 2004 +0000 +++ b/src/xfaces.c Fri Jun 04 15:56:53 2004 +0000 @@ -5740,6 +5740,7 @@ #define TTY_SAME_COLOR_THRESHOLD 10000 +#ifdef HAVE_WINDOW_SYSTEM /* Return non-zero if all the face attributes in ATTRS are supported on the window-system frame F. @@ -5828,6 +5829,7 @@ return 1; } +#endif /* HAVE_WINDOW_SYSTEM */ /* Return non-zero if all the face attributes in ATTRS are supported on the tty frame F. @@ -6042,8 +6044,10 @@ /* Dispatch to the appropriate handler. */ if (FRAME_TERMCAP_P (f) || FRAME_MSDOS_P (f)) supports = tty_supports_face_attributes_p (f, attrs); +#ifdef HAVE_WINDOW_SYSTEM else supports = x_supports_face_attributes_p (f, attrs); +#endif /* HAVE_WINDOW_SYSTEM */ return supports ? Qt : Qnil; }