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.
This commit is contained in:
Xavier Claessens 2022-10-17 04:50:24 -04:00
parent 5215463a03
commit 0db49cc57b
2 changed files with 4 additions and 1 deletions

View File

@ -18,7 +18,6 @@
#mesondefine GMODULE_STATIC_COMPILATION
#mesondefine G_INTL_STATIC_COMPILATION
#mesondefine FFI_STATIC_BUILD
#include <glib/glib-visibility.h>
/* Specifies that GLib's g_print*() functions wrap the
* system printf functions. This is useful to know, for example,

View File

@ -34,6 +34,10 @@
#include <glibconfig.h>
#include <glib/gmacros.h>
#include <glib/gversionmacros.h>
/* Must be included after the 3 headers above */
#include <glib/glib-visibility.h>
#include <time.h>
G_BEGIN_DECLS