telepathy-glib: Add a _TP_AVAILABLE_IN_UNRELEASED macro for use in unmerged branches
Simon McVittie
smcv at kemper.freedesktop.org
Thu May 3 05:12:46 PDT 2012
Module: telepathy-glib
Branch: master
Commit: 4c7be65d8823d2e61ace30f3e3aaf477dcd15569
URL: http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=4c7be65d8823d2e61ace30f3e3aaf477dcd15569
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Thu May 3 12:13:21 2012 +0100
Add a _TP_AVAILABLE_IN_UNRELEASED macro for use in unmerged branches
---
telepathy-glib/defs.h | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/telepathy-glib/defs.h b/telepathy-glib/defs.h
index e39b517..daa5df4 100644
--- a/telepathy-glib/defs.h
+++ b/telepathy-glib/defs.h
@@ -250,6 +250,13 @@ G_BEGIN_DECLS
# define _TP_AVAILABLE_IN_1_0 /* nothing */
#endif
+#if TP_VERSION_MAX_ALLOWED < _TP_VERSION_CUR_STABLE
+# define _TP_AVAILABLE_IN_UNRELEASED \
+ _TP_UNAVAILABLE (TP_MAJOR_VERSION, TP_MINOR_VERSION)
+#else
+# define _TP_AVAILABLE_IN_UNRELEASED /* nothing */
+#endif
+
/* telepathy-glib-specific macros so our regression
* tests can continue to test deprecated functionality, while avoiding
* deprecated bits of other libraries */
More information about the telepathy-commits
mailing list