From: Chun-wei Fan Date: Fri, 21 Oct 2022 04:15:29 +0000 (+0800) Subject: gtkcomposetable.c: Fix build on non-X11 X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~9^2~145^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=611d14108d5658bf4274116e42b2a5c3ddfb710c;p=gtk4.git gtkcomposetable.c: Fix build on non-X11 The build breaks with a C4013 warning/error on Visual Studio because we don't have a prototype defined for _gtk_get_datadir(), so include gtkprivate.h. The vs2017-x64 CI did not catch this error because it is building GLib as a fallback subproject, causing the msvc_recommended_pragmas.h header not to be found, which is used to detect problems like this. --- diff --git a/gtk/gtkcomposetable.c b/gtk/gtkcomposetable.c index 870b077907..0a4f8fd750 100644 --- a/gtk/gtkcomposetable.c +++ b/gtk/gtkcomposetable.c @@ -25,6 +25,7 @@ #include "gtkcomposetable.h" #include "gtkimcontextsimple.h" +#include "gtkprivate.h" #define GTK_COMPOSE_TABLE_MAGIC "GtkComposeTable"