gutils: fix missing include

On platforms other than Win32, the g_abort symbol is #def'd to abort.
C99 specifies that this function prototype resides in stdlib.h, but the
required include is absent from gutils.h.

https://bugzilla.gnome.org/show_bug.cgi?id=793555
This commit is contained in:
George Barrett 2018-02-18 13:28:17 +11:00 committed by Philip Withnall
parent 22b224862c
commit 9ae71e32e8

View File

@ -303,6 +303,7 @@ g_bit_storage_impl (gulong number)
/* Crashes the program. */
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_50
#ifndef G_OS_WIN32
# include <stdlib.h>
# define g_abort() abort ()
#else
GLIB_AVAILABLE_IN_2_50