Try to fix build with older GLib

This commit is contained in:
Přemysl Eric Janouch 2015-02-08 04:15:22 +01:00
parent c454b17999
commit 4c888034f8
1 changed files with 12 additions and 0 deletions

View File

@ -29,6 +29,18 @@
#include "config.h"
#if ! GLIB_CHECK_VERSION (2, 34, 0)
static void
g_clear_pointer (void **pointer, void (*destroy) (void *))
{
if (*pointer)
{
destroy (*pointer);
*pointer = NULL;
}
}
#endif // ! GLIB_CHECK_VERSION (2, 34)
/** User interface string for GtkBuilder. */
extern const char ui[];