]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix MS-Windows build broken by buffered_input_event changes
authorEli Zaretskii <eliz@gnu.org>
Mon, 3 Mar 2025 19:08:35 +0000 (21:08 +0200)
committerEshel Yaron <me@eshelyaron.com>
Tue, 4 Mar 2025 21:04:42 +0000 (22:04 +0100)
* 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
src/keyboard.h

index c6da01968d44ce5f76ad0961772efbe7eb40a930..a8ded65d4c198f0023c1088a4ab2b78a22fc85bf 100644 (file)
@@ -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 \
index ddbb1c3729eb21843487443d1ca2a4055c4f2af3..1dd56d92a8fe67b2edc5e64d353d90a225f7e65c 100644 (file)
@@ -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);