Commit 9e6daf04 authored by Ahmad Samir's avatar Ahmad Samir
Browse files

Use cmakedefine01

This way we get a build time warning if the var isn't defined at all, e.g.
a missing check_include_files() CMake call.
parent 05a0e5bb
Pipeline #188815 passed with stage
in 9 minutes and 33 seconds
#ifndef _CONFIG_H
#define _CONFIG_H
#cmakedefine HAVE_SEPARATE_MTA_RESOURCE
#cmakedefine01 HAVE_SEPARATE_MTA_RESOURCE
#cmakedefine AKONADI_EWS_VERSION "@AKONADI_EWS_VERSION@"
......
......@@ -29,7 +29,7 @@
#include "ewsconfigdialog.h"
#include "ewscreatefolderrequest.h"
#include "ewscreateitemjob.h"
#ifdef HAVE_SEPARATE_MTA_RESOURCE
#if HAVE_SEPARATE_MTA_RESOURCE
#include "ewscreateitemrequest.h"
#endif
#include "ewsdeletefolderrequest.h"
......@@ -1020,7 +1020,7 @@ void EwsResource::itemSendRequestFinished(KJob *job)
void EwsResource::sendMessage(const QString &id, const QByteArray &content)
{
#ifdef HAVE_SEPARATE_MTA_RESOURCE
#if HAVE_SEPARATE_MTA_RESOURCE
auto req = new EwsCreateItemRequest(mEwsClient, this);
EwsItem item;
......@@ -1034,7 +1034,7 @@ void EwsResource::sendMessage(const QString &id, const QByteArray &content)
#endif
}
#ifdef HAVE_SEPARATE_MTA_RESOURCE
#if HAVE_SEPARATE_MTA_RESOURCE
void EwsResource::messageSendRequestFinished(KJob *job)
{
QString id = job->property("requestId").toString();
......
......@@ -120,7 +120,7 @@ public Q_SLOTS:
Q_SCRIPTABLE void sendMessage(const QString &id, const QByteArray &content);
Q_SIGNALS:
Q_SCRIPTABLE void messageSent(const QString &id, const QString &error);
#ifdef HAVE_SEPARATE_MTA_RESOURCE
#if HAVE_SEPARATE_MTA_RESOURCE
private Q_SLOTS:
void messageSendRequestFinished(KJob *job);
#endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment