From: Po Lu Date: Sun, 27 Mar 2022 01:48:37 +0000 (+0800) Subject: Fix no-toolkit build X-Git-Tag: emacs-29.0.90~1931^2~894 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0bdbea654d3762a55ee23cbeb1ef6f14167acaba;p=emacs.git Fix no-toolkit build * src/xterm.c (x_top_window_to_frame): Declare correctly on no-toolkit builds. --- diff --git a/src/xterm.c b/src/xterm.c index 3be57332155..a9908930296 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -7657,7 +7657,12 @@ x_top_window_to_frame (struct x_display_info *dpyinfo, int wdesc) #else /* !USE_X_TOOLKIT && !USE_GTK */ #define x_any_window_to_frame(d, i) x_window_to_frame (d, i) -#define x_top_window_to_frame(d, i) x_window_to_frame (d, i) + +struct frame * +x_top_window_to_frame (struct x_display_info *dpyinfo, int wdesc) +{ + return x_window_to_frame (dpyinfo, wdesc); +} #endif /* USE_X_TOOLKIT || USE_GTK */