From 9f12cc3dcd7e56cb7f500c24b302e158dc47bea5 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 12 Feb 2011 09:12:36 -0500 Subject: [PATCH] Protect x11-specific functions in gtktypefuncs.c This is just a bandaid fix, we really need to systematically collect type functions for all backends. --- gtk/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/Makefile.am b/gtk/Makefile.am index fe514890b0..c95adb7323 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -874,7 +874,7 @@ gtktypefuncs.c: @REBUILD@ stamp-gtktypebuiltins.h $(top_srcdir)/gtk/*.h $(top_sr ${CPP} $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) xgen-gtfsrc.c | \ $(GREP) -o '\bg[td]k_[a-zA-Z0-9_]*_get_type\b' | \ sort | uniq | \ - $(SED) '{ s/^/*tp++ = /; s/$$/();/; }' > xgen-gtf \ + $(SED) '{ s/^/*tp++ = /; s/$$/();/; s/^.*\(gdk_x11\|gtk_plug_\|gtk_socket_\).*$$/#ifdef GDK_WINDOWING_X11\n&\n#endif/; }' > xgen-gtf \ && cp xgen-gtf $@ && rm -f xgen-gtf gtktestutils.c: gtktypefuncs.c