From 68520c989d0d18e6b24c454b9f4acf2f5f8f030a Mon Sep 17 00:00:00 2001 From: Abderrahim Kitouni Date: Sun, 8 Jan 2023 19:15:53 +0100 Subject: [PATCH] Only define EPhoneNumber autocleanup for old versions This fixes build with latest evolution-data-server --- src/calls-contacts-provider.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calls-contacts-provider.h b/src/calls-contacts-provider.h index f6c5f9b..5cf33bf 100644 --- a/src/calls-contacts-provider.h +++ b/src/calls-contacts-provider.h @@ -39,7 +39,9 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC (GeeMap, g_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC (GeeSet, g_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC (GeeSortedSet, g_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC (GeeCollection, g_object_unref) +#if !EDS_CHECK_VERSION(3, 47, 1) G_DEFINE_AUTOPTR_CLEANUP_FUNC (EPhoneNumber, e_phone_number_free) +#endif typedef void (*IdleCallback) (gpointer user_data, FolksIndividual *individual);