From c776ff502075351b08a0e2244782639d7b8eec29 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Wed, 20 Jun 2018 22:46:41 +0000 Subject: [PATCH] Add missing Discord guard after 27a94308a740 /usr/bin/ld: error: undefined symbol: Discord_Initialize >>> referenced by _discord_utils.cpp >>> rpcs3/CMakeFiles/rpcs3.dir/rpcs3qt/_discord_utils.cpp.o:(discord::initialize(std::__1::basic_string, std::__1::allocator > const&)) /usr/bin/ld: error: undefined symbol: Discord_Shutdown >>> referenced by _discord_utils.cpp >>> rpcs3/CMakeFiles/rpcs3.dir/rpcs3qt/_discord_utils.cpp.o:(discord::shutdown()) /usr/bin/ld: error: undefined symbol: Discord_UpdatePresence >>> referenced by _discord_utils.cpp >>> rpcs3/CMakeFiles/rpcs3.dir/rpcs3qt/_discord_utils.cpp.o:(discord::update_presence(std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&, bool)) c++: error: linker command failed with exit code 1 (use -v to see invocation) --- rpcs3/rpcs3qt/_discord_utils.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rpcs3/rpcs3qt/_discord_utils.cpp b/rpcs3/rpcs3qt/_discord_utils.cpp index 9d26900cf3..eb61682aee 100644 --- a/rpcs3/rpcs3qt/_discord_utils.cpp +++ b/rpcs3/rpcs3qt/_discord_utils.cpp @@ -1,3 +1,4 @@ +#ifdef WITH_DISCORD_RPC #include "_discord_utils.h" #include "discord_rpc.h" #include "discord_register.h" @@ -31,3 +32,4 @@ namespace discord Discord_UpdatePresence(&discordPresence); } } +#endif