mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
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
This commit is contained in:
parent
98c3c3397c
commit
24f2cfba25
@ -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); \
|
||||
|
Loading…
Reference in New Issue
Block a user