mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
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:
parent
22b224862c
commit
9ae71e32e8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user