diff --git a/deps/discord-rpc/src/discord_rpc.cpp b/deps/discord-rpc/src/discord_rpc.cpp index 56af3fe7c5..c777b779cf 100644 --- a/deps/discord-rpc/src/discord_rpc.cpp +++ b/deps/discord-rpc/src/discord_rpc.cpp @@ -15,19 +15,6 @@ #include #endif - -/* Forward declarations */ -#if defined(__cplusplus) && !defined(CXX_BUILD) -extern "C" { -#endif - -void Discord_Register(const char *a, const char *b); -void Discord_RegisterSteamGame(const char *a, const char *b); - -#if defined(__cplusplus) && !defined(CXX_BUILD) -} -#endif - struct QueuedMessage { size_t length; diff --git a/deps/discord-rpc/src/rpc_connection.cpp b/deps/discord-rpc/src/rpc_connection.cpp index 6904b32249..ce5e14928f 100644 --- a/deps/discord-rpc/src/rpc_connection.cpp +++ b/deps/discord-rpc/src/rpc_connection.cpp @@ -3,7 +3,8 @@ #include -static const int RpcVersion = 1; +#define RPC_VERSION 1 + static RpcConnection Instance; /*static*/ RpcConnection* RpcConnection::Create(const char* applicationId) @@ -52,7 +53,7 @@ void RpcConnection::Open() { sendFrame.opcode = Opcode::Handshake; sendFrame.length = (uint32_t)JsonWriteHandshakeObj( - sendFrame.message, sizeof(sendFrame.message), RpcVersion, appId); + sendFrame.message, sizeof(sendFrame.message), RPC_VERSION, appId); if (connection->Write(&sendFrame, sizeof(MessageFrameHeader) + sendFrame.length))