Removed unnecessary ifdef wrap on discordrpc

This commit is contained in:
KiritoDv 2021-05-24 16:27:33 +00:00
parent 9449af45ab
commit 892110841b
1 changed files with 0 additions and 7 deletions

View File

@ -249,17 +249,10 @@ void discord_init(void) {
return;
}
#if defined(_WIN32)
discordInit = (Discord_Initialize) dlsym(handle, "Discord_Initialize");
discordShutdown = (Discord_Shutdown) dlsym(handle, "Discord_Shutdown");
discordClearPresence = (Discord_ClearPresence) dlsym(handle, "Discord_ClearPresence");
discordUpdatePresence = (Discord_UpdatePresence) dlsym(handle, "Discord_UpdatePresence");
#else
discordInit = (Discord_Initialize) dlsym(handle, "Discord_Initialize");
discordShutdown = (Discord_Shutdown) dlsym(handle, "Discord_Shutdown");
discordClearPresence = (Discord_ClearPresence) dlsym(handle, "Discord_ClearPresence");
discordUpdatePresence = (Discord_UpdatePresence) dlsym(handle, "Discord_UpdatePresence");
#endif
init_discord();
discordRichPresence.details = stage;