From 0db49cc57bb8e76535bfa690fcda8f258030997f Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Mon, 17 Oct 2022 04:50:24 -0400 Subject: [PATCH] Fix include order of glib-visibility.h It uses macros from glibconfig.h, gmacros.h and gversionmacros.h, makes sure it is included after them. --- glib/glibconfig.h.in | 1 - glib/gtypes.h | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/glib/glibconfig.h.in b/glib/glibconfig.h.in index fb85daf99..e93a7c866 100644 --- a/glib/glibconfig.h.in +++ b/glib/glibconfig.h.in @@ -18,7 +18,6 @@ #mesondefine GMODULE_STATIC_COMPILATION #mesondefine G_INTL_STATIC_COMPILATION #mesondefine FFI_STATIC_BUILD -#include /* Specifies that GLib's g_print*() functions wrap the * system printf functions. This is useful to know, for example, diff --git a/glib/gtypes.h b/glib/gtypes.h index 15ead8da3..2312d5ae6 100644 --- a/glib/gtypes.h +++ b/glib/gtypes.h @@ -34,6 +34,10 @@ #include #include #include + +/* Must be included after the 3 headers above */ +#include + #include G_BEGIN_DECLS