[gtk/wip.win32.fixes: 84/84] gtkcomposetable.c: Fix build on non-X11




commit 9bb96582b2b399377e148f99342dcdf08a4a16ed
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Fri Oct 21 12:15:29 2022 +0800

    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.

 gtk/gtkcomposetable.c | 1 +
 1 file changed, 1 insertion(+)
---
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"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]