From 24f2cfba25841d6248cffe39ddf3e039d204d389 Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Thu, 3 Nov 2022 19:06:40 -0500 Subject: [PATCH] gtask: don't use g_task_set_static_name() unless allowed Need to check GLIB_VERSION_MIN_REQUIRED before inlining use of something newer. Fixes #2805 --- gio/gtask.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/gtask.h b/gio/gtask.h index 368d60ff2..1c2490fab 100644 --- a/gio/gtask.h +++ b/gio/gtask.h @@ -84,7 +84,7 @@ void g_task_set_static_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 +#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_76 #define g_task_set_source_tag(task, tag) G_STMT_START { \ GTask *_task = (task); \ (g_task_set_source_tag) (_task, tag); \