diff --git a/gio/gtask.h b/gio/gtask.h index 08ed7be72..bc6454a25 100644 --- a/gio/gtask.h +++ b/gio/gtask.h @@ -79,12 +79,14 @@ void g_task_set_name (GTask *task, const gchar *name); /* Macro wrapper to set the task name when setting the source tag. */ +#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_60 #define g_task_set_source_tag(task, tag) G_STMT_START { \ GTask *_task = (task); \ (g_task_set_source_tag) (_task, tag); \ if (g_task_get_name (_task) == NULL) \ g_task_set_name (_task, G_STRINGIFY (tag)); \ } G_STMT_END +#endif GLIB_AVAILABLE_IN_2_36 gpointer g_task_get_source_object (GTask *task);