Fix build failure with Fx_gtk_debug

* src/xfns.c (Fx_gtk_debug, Sx_gtk_debug): Define only for GTK
versions >= 3.14.0 so gtk_window_set_interactive_debugging is
defined.  Reported by Andreas Schwab  <schwab@linux-m68k.org>.
This commit is contained in:
Martin Rudalics 2020-04-12 10:00:28 +02:00
parent cf57663f2a
commit 1482a75efa

View file

@ -7755,6 +7755,7 @@ Note: Text drawn with the `x' font backend is shown with hollow boxes. */)
#ifdef USE_GTK #ifdef USE_GTK
#ifdef HAVE_GTK3 #ifdef HAVE_GTK3
#if GTK_CHECK_VERSION (3, 14, 0)
DEFUN ("x-gtk-debug", Fx_gtk_debug, Sx_gtk_debug, 1, 1, 0, DEFUN ("x-gtk-debug", Fx_gtk_debug, Sx_gtk_debug, 1, 1, 0,
doc: /* Toggle interactive GTK debugging. */) doc: /* Toggle interactive GTK debugging. */)
(Lisp_Object enable) (Lisp_Object enable)
@ -7767,6 +7768,7 @@ DEFUN ("x-gtk-debug", Fx_gtk_debug, Sx_gtk_debug, 1, 1, 0,
return NILP (enable) ? Qnil : Qt; return NILP (enable) ? Qnil : Qt;
} }
#endif /* GTK_CHECK_VERSION (3, 14, 0) */
#endif /* HAVE_GTK3 */ #endif /* HAVE_GTK3 */
#endif /* USE_GTK */ #endif /* USE_GTK */
@ -8154,7 +8156,9 @@ eliminated in future versions of Emacs. */);
#endif #endif
#ifdef USE_GTK #ifdef USE_GTK
#ifdef HAVE_GTK3 #ifdef HAVE_GTK3
#if GTK_CHECK_VERSION (3, 14, 0)
defsubr (&Sx_gtk_debug); defsubr (&Sx_gtk_debug);
#endif #endif
#endif #endif
#endif
} }