aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2015-06-08 21:15:05 +0300
committerEli Zaretskii2015-06-08 21:15:05 +0300
commit55200b4ca595cf1588fd0cefcece151ac84cb19a (patch)
tree97325b88e233f149c3e7879c27d76b95220c50e4
parent8d9e5bab41aa1995d801112b8413b514e59f033e (diff)
downloademacs-55200b4ca595cf1588fd0cefcece151ac84cb19a.tar.gz
emacs-55200b4ca595cf1588fd0cefcece151ac84cb19a.zip
Fix compilation warning/error in --without-x builds
* src/xdisp.c (append_space_for_newline): Condition GUI-specific code on HAVE_WINDOW_SYSTEM.
-rw-r--r--src/xdisp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 14385fa8421..f0e30900043 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -19200,6 +19200,7 @@ append_space_for_newline (struct it *it, bool default_face_p)
19200 19200
19201 PRODUCE_GLYPHS (it); 19201 PRODUCE_GLYPHS (it);
19202 19202
19203#ifdef HAVE_WINDOW_SYSTEM
19203 /* Make sure this space glyph has the right ascent and 19204 /* Make sure this space glyph has the right ascent and
19204 descent values, or else cursor at end of line will look 19205 descent values, or else cursor at end of line will look
19205 funny. */ 19206 funny. */
@@ -19216,6 +19217,7 @@ append_space_for_newline (struct it *it, bool default_face_p)
19216 19217
19217 g->ascent = it->max_ascent; 19218 g->ascent = it->max_ascent;
19218 g->descent = it->max_descent; 19219 g->descent = it->max_descent;
19220#endif
19219 19221
19220 it->override_ascent = -1; 19222 it->override_ascent = -1;
19221 it->constrain_row_ascent_descent_p = false; 19223 it->constrain_row_ascent_descent_p = false;