From b53de3352192618d33400363040d79cb2bc66fb0 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Tue, 3 Sep 2013 22:00:36 +0100 Subject: [PATCH] object: use GLib's DestroyNotify if compiled with GLib Reviewed-by: Robert Bragg --- cogl/cogl-object.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cogl/cogl-object.h b/cogl/cogl-object.h index 803aa648c..a557f800e 100644 --- a/cogl/cogl-object.h +++ b/cogl/cogl-object.h @@ -103,7 +103,11 @@ typedef struct { * * Since: 1.4 */ +#ifdef COGL_HAS_GTYPE_SUPPORT +typedef GDestroyNotify CoglUserDataDestroyCallback; +#else typedef void (*CoglUserDataDestroyCallback) (void *user_data); +#endif /** * CoglDebugObjectTypeInfo: