mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-11-05 02:28:55 +01:00
gmem.h, gthread.h: Include glib/gutils.h
gmem.h and gthread.h made use of the inline keyword, that is not available on all compilers in C-mode, causing builds to break on such compilers. Include glib/gutils.h which handles the inline issue, in place of glib/gtypes.h if applicable, which is included quite early on by glib/gutils.h. https://bugzilla.gnome.org/show_bug.cgi?id=744190
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
#error "Only <glib.h> can be included directly."
|
#error "Only <glib.h> can be included directly."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <glib/gtypes.h>
|
#include <glib/gutils.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,7 @@
|
|||||||
|
|
||||||
#include <glib/gatomic.h>
|
#include <glib/gatomic.h>
|
||||||
#include <glib/gerror.h>
|
#include <glib/gerror.h>
|
||||||
|
#include <glib/gutils.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user