summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Rudalics <rudalics@gmx.at>2020-04-12 10:00:28 +0200
committerMartin Rudalics <rudalics@gmx.at>2020-04-12 10:00:28 +0200
commit1482a75efa7e198b38bd6871c1b35eedc2c94fca (patch)
tree27c7db3a25fe664db5496f101d41fec8ea1d5630
parentcf57663f2ab80814d17eee0f21b498262f933d89 (diff)
downloademacs-1482a75efa7e198b38bd6871c1b35eedc2c94fca.tar.gz
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>.
-rw-r--r--src/xfns.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 0fc553012bd..a5431aa8909 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -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 */
@@ -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
}