Keep e_flag_timed_wait() building.
authorMatthew Barnes <mbarnes@redhat.com>
Tue, 12 Feb 2013 23:03:04 +0000 (18:03 -0500)
committerMatthew Barnes <mbarnes@redhat.com>
Tue, 12 Feb 2013 23:15:12 +0000 (18:15 -0500)
libedataserver/e-flag.c

index 67d06f2..ffa1846 100644 (file)
@@ -25,6 +25,16 @@ struct _EFlag {
        gboolean is_set;
 };
 
+/* This is to keep e_flag_timed_wait() building, since
+ * it relies on g_cond_timed_wait() which is deprecated. */
+#if GLIB_CHECK_VERSION(2,35,6)
+#ifdef G_DISABLE_DEPRECATED
+gboolean       g_cond_timed_wait               (GCond *cond,
+                                                GMutex *mutex,
+                                                GTimeVal *timeval);
+#endif /* G_DISABLE_DEPRECATED */
+#endif /* GLIB_CHECK_VERSION */
+
 /**
  * e_flag_new:
  *