diff options
| author | TrickyLeifa <date.epoch@gmail.com> | 2024-05-18 02:21:17 +0200 |
|---|---|---|
| committer | TrickyLeifa <date.epoch@gmail.com> | 2024-05-18 02:21:17 +0200 |
| commit | db5ceb056955eff1018ea991e0117d6892366f2e (patch) | |
| tree | ef2cf5202905b9d7bf02cc710cc302164ed991f8 | |
| parent | 657145035cd66c18ae777e1272fd5221dddca0ef (diff) | |
No longer required Discord-RPC headers when disabled
| -rw-r--r-- | src/discord_rich_presence.cpp | 5 | ||||
| -rw-r--r-- | src/discord_rich_presence.h | 3 |
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) |
