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:
Chun-wei Fan 2015-02-09 15:42:01 +08:00
parent 59c0ff4825
commit 433fc9475d
2 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,7 @@
#error "Only <glib.h> can be included directly."
#endif
#include <glib/gtypes.h>
#include <glib/gutils.h>
G_BEGIN_DECLS

View File

@ -31,6 +31,7 @@
#include <glib/gatomic.h>
#include <glib/gerror.h>
#include <glib/gutils.h>
G_BEGIN_DECLS