From 561197e519c5adc33622c2e5519693d270f6262b Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 22 Jan 2021 14:16:51 +0200 Subject: [PATCH] Fix last change for DOS_NT systems * src/term.c (tty_draw_row_with_mouse_face) (tty_write_glyphs_with_face): Don't define on MSDOS and WINDOWSNT, as those have their own implementations of that. --- src/term.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/term.c b/src/term.c index 37c06a560dd..1059b0669a7 100644 --- a/src/term.c +++ b/src/term.c @@ -790,6 +790,8 @@ tty_write_glyphs (struct frame *f, struct glyph *string, int len) cmcheckmagic (tty); } +#ifndef DOS_NT + static void tty_write_glyphs_with_face (register struct frame *f, register struct glyph *string, register int len, register int face_id) @@ -846,6 +848,8 @@ tty_write_glyphs_with_face (register struct frame *f, register struct glyph *str cmcheckmagic (tty); } +#endif + /* An implementation of insert_glyphs for termcap frames. */ static void @@ -2377,7 +2381,9 @@ frame's terminal). */) Mouse ***********************************************************************/ -/* Implementation of draw_row_with_mouse_face for TTY/GPM. */ +#ifndef DOS_NT + +/* Implementation of draw_row_with_mouse_face for TTY/GPM and macOS. */ void tty_draw_row_with_mouse_face (struct window *w, struct glyph_row *row, int start_hpos, int end_hpos, @@ -2409,6 +2415,8 @@ tty_draw_row_with_mouse_face (struct window *w, struct glyph_row *row, cursor_to (f, save_y, save_x); } +#endif + #ifdef HAVE_GPM void -- 2.39.5