Skip to content

Commit

Permalink
fix decls
Browse files Browse the repository at this point in the history
  • Loading branch information
snowyote committed Jan 9, 2018
1 parent ec6af61 commit b85758e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/send-presence/send-presence.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static void updateDiscordPresence()
}
}

static void handleDiscordReady()
static void handleDiscordReady(void)
{
printf("\nDiscord: ready\n");
}
Expand Down
6 changes: 3 additions & 3 deletions src/discord-rpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ extern "C" DISCORD_EXPORT void Discord_Initialize(const char* applicationId,
IoThread.Start();
}

extern "C" DISCORD_EXPORT void Discord_Shutdown()
extern "C" DISCORD_EXPORT void Discord_Shutdown(void)
{
if (!Connection) {
return;
Expand All @@ -325,7 +325,7 @@ extern "C" DISCORD_EXPORT void Discord_UpdatePresence(const DiscordRichPresence*
SignalIOActivity();
}

extern "C" DISCORD_EXPORT void Discord_ClearPresence()
extern "C" DISCORD_EXPORT void Discord_ClearPresence(void)
{
Discord_UpdatePresence(nullptr);
}
Expand All @@ -345,7 +345,7 @@ extern "C" DISCORD_EXPORT void Discord_Respond(const char* userId, /* DISCORD_RE
}
}

extern "C" DISCORD_EXPORT void Discord_RunCallbacks()
extern "C" DISCORD_EXPORT void Discord_RunCallbacks(void)
{
// Note on some weirdness: internally we might connect, get other signals, disconnect any number
// of times inbetween calls here. Externally, we want the sequence to seem sane, so any other
Expand Down

0 comments on commit b85758e

Please sign in to comment.