From 722731bba010b1fbfb8b8745a6f76cc23c91ead6 Mon Sep 17 00:00:00 2001 From: Krzysztof Nowicki Date: Wed, 26 Oct 2016 22:41:32 +0200 Subject: [PATCH] Use alternative name for AKONADI_VERSION Some older variants of akonadi_version.h seem to use a different name for the version definition. --- ewsmtaresource.h | 5 +++++ ewsresource.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ewsmtaresource.h b/ewsmtaresource.h index 15815aa..79683da 100644 --- a/ewsmtaresource.h +++ b/ewsmtaresource.h @@ -25,6 +25,11 @@ #include #include +// Some older variants of akonadi_version.h use a different name +#ifndef AKONADI_VERSION +#define AKONADI_VERSION AKONADILIBRARIES_VERSION +#endif + class OrgKdeAkonadiEwsResourceInterface; class EwsMtaResource : public Akonadi::ResourceBase, public Akonadi::TransportResourceBase diff --git a/ewsresource.h b/ewsresource.h index afc3934..581f9dc 100644 --- a/ewsresource.h +++ b/ewsresource.h @@ -31,6 +31,11 @@ #include "config.h" +// Some older variants of akonadi_version.h use a different name +#ifndef AKONADI_VERSION +#define AKONADI_VERSION AKONADILIBRARIES_VERSION +#endif + class FetchItemState; class EwsGetItemRequest; class EwsFindFolderRequest;