Try to fix build with older GLib
This commit is contained in:
parent
c454b17999
commit
4c888034f8
@ -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[];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user