object: use GLib's DestroyNotify if compiled with GLib
Reviewed-by: Robert Bragg <robert@linux.intel.com>
This commit is contained in:
parent
a34f4f46b6
commit
b53de33521
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user