From 4c7be65d8823d2e61ace30f3e3aaf477dcd15569 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 3 May 2012 12:13:21 +0100 Subject: [PATCH 11/15] Add a _TP_AVAILABLE_IN_UNRELEASED macro for use in unmerged branches --- telepathy-glib/defs.h | 7 +++++++ 1 file changed, 7 insertions(+) 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 */ -- 1.7.10