aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Rudalics2020-04-12 10:00:28 +0200
committerMartin Rudalics2020-04-12 10:00:28 +0200
commit1482a75efa7e198b38bd6871c1b35eedc2c94fca (patch)
tree27c7db3a25fe664db5496f101d41fec8ea1d5630 /src
parentcf57663f2ab80814d17eee0f21b498262f933d89 (diff)
downloademacs-1482a75efa7e198b38bd6871c1b35eedc2c94fca.tar.gz
emacs-1482a75efa7e198b38bd6871c1b35eedc2c94fca.zip
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>.
Diffstat (limited to 'src')
-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. */)
7755 7755
7756#ifdef USE_GTK 7756#ifdef USE_GTK
7757#ifdef HAVE_GTK3 7757#ifdef HAVE_GTK3
7758#if GTK_CHECK_VERSION (3, 14, 0)
7758DEFUN ("x-gtk-debug", Fx_gtk_debug, Sx_gtk_debug, 1, 1, 0, 7759DEFUN ("x-gtk-debug", Fx_gtk_debug, Sx_gtk_debug, 1, 1, 0,
7759 doc: /* Toggle interactive GTK debugging. */) 7760 doc: /* Toggle interactive GTK debugging. */)
7760 (Lisp_Object enable) 7761 (Lisp_Object enable)
@@ -7767,6 +7768,7 @@ DEFUN ("x-gtk-debug", Fx_gtk_debug, Sx_gtk_debug, 1, 1, 0,
7767 7768
7768 return NILP (enable) ? Qnil : Qt; 7769 return NILP (enable) ? Qnil : Qt;
7769} 7770}
7771#endif /* GTK_CHECK_VERSION (3, 14, 0) */
7770#endif /* HAVE_GTK3 */ 7772#endif /* HAVE_GTK3 */
7771#endif /* USE_GTK */ 7773#endif /* USE_GTK */
7772 7774
@@ -8154,7 +8156,9 @@ eliminated in future versions of Emacs. */);
8154#endif 8156#endif
8155#ifdef USE_GTK 8157#ifdef USE_GTK
8156#ifdef HAVE_GTK3 8158#ifdef HAVE_GTK3
8159#if GTK_CHECK_VERSION (3, 14, 0)
8157 defsubr (&Sx_gtk_debug); 8160 defsubr (&Sx_gtk_debug);
8158#endif 8161#endif
8159#endif 8162#endif
8163#endif
8160} 8164}