Mercurial > pidgin.yaz
diff plugins/gevolution/gevolution.h @ 9354:a5ec9e73f46d
[gaim-migrate @ 10162]
Because the Evolution project doesn't bump their version numbers until just
before release, and they broke backwards-compatibility since the last
evolution-data-server release in the header files, those people using
0.0.95cvs are going to not be able to compile gevolution until 0.0.95 comes
out, or unless they comment out the #include <libebook/e-book-async.h> in
gevolution.h. The code I added here centralizes the include files a bit
more, and checks if we're using 0.0.95 or not. The Evo guys are releasing
hopefully next week or the week after, I think, so that should take care of
it.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 22 Jun 2004 22:42:10 +0000 |
parents | c307cf4c84d2 |
children | 7a149eac59a3 |
line wrap: on
line diff
--- a/plugins/gevolution/gevolution.h Tue Jun 22 21:12:31 2004 +0000 +++ b/plugins/gevolution/gevolution.h Tue Jun 22 22:42:10 2004 +0000 @@ -25,8 +25,18 @@ # include "config.h" #endif +#define EBOOK_CHECK_VERSION(major, minor, micro) \ + (LIBEBOOK_MAJOR_VER > (major) || \ + (LIBEBOOK_MAJOR_VER == (major) && LIBEBOOK_MINOR_VER > (minor)) || \ + (LIBEBOOK_MAJOR_VER == (major) && LIBEBOOK_MINOR_VER == (minor) && \ + LIBEBOOK_MICRO_VER >= (micro))) + #include <libebook/e-book.h> +#if !EBOOK_CHECK_VERSION(0, 0, 95) +# include <libebook/e-book-async.h> +#endif + typedef struct { GaimAccount *account; @@ -87,12 +97,6 @@ } GevoAssociateBuddyDialog; -#define EBOOK_CHECK_VERSION(major, minor, micro) \ - (LIBEBOOK_MAJOR_VER > (major) || \ - (LIBEBOOK_MAJOR_VER == (major) && LIBEBOOK_MINOR_VER > (minor)) || \ - (LIBEBOOK_MAJOR_VER == (major) && LIBEBOOK_MINOR_VER == (minor) && \ - LIBEBOOK_MICRO_VER >= (micro))) - void gevo_add_buddy_dialog_show(GaimAccount *account, const char *username, const char *group, const char *alias); void gevo_add_buddy_dialog_add_person(GevoAddBuddyDialog *dialog,