aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/discord_rich_presence.cpp5
-rw-r--r--src/discord_rich_presence.h3
2 files changed, 4 insertions, 4 deletions
diff --git a/src/discord_rich_presence.cpp b/src/discord_rich_presence.cpp
index 6969334f..c22a6f66 100644
--- a/src/discord_rich_presence.cpp
+++ b/src/discord_rich_presence.cpp
@@ -1,8 +1,11 @@
#include "discord_rich_presence.h"
+#ifdef AO_ENABLE_DISCORD_RPC
+#include <discord_rpc.h>
+#endif
+
namespace AttorneyOnline
{
-
#if defined(AO_ENABLE_DISCORD_RPC) && !defined(ANDROID)
Discord::Discord()
{
diff --git a/src/discord_rich_presence.h b/src/discord_rich_presence.h
index 4d390c06..2945f292 100644
--- a/src/discord_rich_presence.h
+++ b/src/discord_rich_presence.h
@@ -3,15 +3,12 @@
#include <QCoreApplication>
#include <QDebug>
-#include <discord_rpc.h>
-
#include <cstring>
#include <ctime>
#include <string>
namespace AttorneyOnline
{
-
class Discord
{
Q_DECLARE_TR_FUNCTIONS(Discord)