From 8ae025a4c14a4f7094a42eb76883db0a05772361 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 3 Mar 2025 21:08:35 +0200 Subject: [PATCH] Fix MS-Windows build broken by buffered_input_event changes * src/keyboard.c (kbd_buffer_store_selection_event_hold): * src/keyboard.h (kbd_buffer_store_selection_event_hold): Declare and define only for (HAVE_X11 || HAVE_PGTK). (cherry picked from commit 1ec0889e7b786d79351cee3ed4964d82295f059f) --- src/keyboard.c | 2 ++ src/keyboard.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/keyboard.c b/src/keyboard.c index c6da01968d4..a8ded65d4c1 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -3840,6 +3840,7 @@ kbd_buffer_store_event_hold (struct input_event *event, maybe_quit_while_no_input (event->kind); } +#if defined HAVE_X11 || defined HAVE_PGTK /* Store EVENT obtained at interrupt level into kbd_buffer, fifo. This is like kbd_buffer_store_event_hold, but for struct selection_input_event instead of struct input_event. @@ -3870,6 +3871,7 @@ kbd_buffer_store_selection_event_hold (struct selection_input_event *event, maybe_quit_while_no_input (event->kind); } +#endif /* HAVE_X11 || HAVE_PGTK */ /* Limit help event positions to this range, to avoid overflow problems. */ #define INPUT_EVENT_POS_MAX \ diff --git a/src/keyboard.h b/src/keyboard.h index ddbb1c3729e..1dd56d92a8f 100644 --- a/src/keyboard.h +++ b/src/keyboard.h @@ -501,8 +501,10 @@ extern bool lucid_event_type_list_p (Lisp_Object); extern void kbd_buffer_store_event (struct input_event *); extern void kbd_buffer_store_event_hold (struct input_event *, struct input_event *); +#if defined HAVE_X11 || defined HAVE_PGTK extern void kbd_buffer_store_selection_event_hold (struct selection_input_event *, struct input_event *); +#endif extern void poll_for_input_1 (void); extern void show_help_echo (Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object); -- 2.39.5