]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix build failure with Fx_gtk_debug
authorMartin Rudalics <rudalics@gmx.at>
Sun, 12 Apr 2020 08:00:28 +0000 (10:00 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Sun, 12 Apr 2020 08:00:28 +0000 (10:00 +0200)
* 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>.

src/xfns.c

index 0fc553012bdfbce6122098896138bc0e824594d4..a5431aa8909ac423a50da6118163827bf6eeb87f 100644 (file)
@@ -7755,6 +7755,7 @@ Note: Text drawn with the `x' font backend is shown with hollow boxes.  */)
 
 #ifdef USE_GTK
 #ifdef HAVE_GTK3
+#if GTK_CHECK_VERSION (3, 14, 0)
 DEFUN ("x-gtk-debug", Fx_gtk_debug, Sx_gtk_debug, 1, 1, 0,
        doc: /* Toggle interactive GTK debugging.   */)
   (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;
 }
+#endif /* GTK_CHECK_VERSION (3, 14, 0) */
 #endif /* HAVE_GTK3 */
 #endif /* USE_GTK */
 \f
@@ -8154,7 +8156,9 @@ eliminated in future versions of Emacs.  */);
 #endif
 #ifdef USE_GTK
 #ifdef HAVE_GTK3
+#if GTK_CHECK_VERSION (3, 14, 0)
   defsubr (&Sx_gtk_debug);
 #endif
 #endif
+#endif
 }