object: use GLib's DestroyNotify if compiled with GLib

Reviewed-by: Robert Bragg <robert@linux.intel.com>
This commit is contained in:
Lionel Landwerlin 2013-09-03 22:00:36 +01:00 committed by Robert Bragg
parent a34f4f46b6
commit b53de33521

View File

@ -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: