From f524ee716e4e2fdb959c1dd28210a3a8dfc6cbfe Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 3 May 2012 12:31:31 +0100 Subject: [PATCH 14/15] Fix computation of CUR_STABLE, PREV_STABLE for nearly-0.19 (0.18.999.1) --- telepathy-glib/defs.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/telepathy-glib/defs.h b/telepathy-glib/defs.h index dd46492..3c21e42 100644 --- a/telepathy-glib/defs.h +++ b/telepathy-glib/defs.h @@ -165,6 +165,12 @@ G_BEGIN_DECLS /* special case for telepathy-glib 1.0 itself */ # define _TP_VERSION_CUR_STABLE (_TP_ENCODE_VERSION (TP_MAJOR_VERSION, 0)) # define _TP_VERSION_PREV_STABLE (_TP_ENCODE_VERSION (TP_MAJOR_VERSION, 0)) +#elif (TP_MICRO_VERSION >= 99 && (TP_MINOR_VERSION % 2) == 0) + /* development branch about to start (0.18.999.1) */ +# define _TP_VERSION_CUR_STABLE \ + (_TP_ENCODE_VERSION (TP_MAJOR_VERSION, TP_MINOR_VERSION + 2)) +# define _TP_VERSION_PREV_STABLE \ + (_TP_ENCODE_VERSION (TP_MAJOR_VERSION, TP_MINOR_VERSION)) #elif (TP_MINOR_VERSION % 2) /* development branch */ # define _TP_VERSION_CUR_STABLE \ -- 1.7.10