mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 03:02:10 +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:
parent
59c0ff4825
commit
433fc9475d
@ -29,7 +29,7 @@
|
||||
#error "Only <glib.h> can be included directly."
|
||||
#endif
|
||||
|
||||
#include <glib/gtypes.h>
|
||||
#include <glib/gutils.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
|
@ -31,6 +31,7 @@
|
||||
|
||||
#include <glib/gatomic.h>
|
||||
#include <glib/gerror.h>
|
||||
#include <glib/gutils.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user