Put this around HAVE_DISCORD ifdefs

This commit is contained in:
twinaphex 2018-08-08 07:35:11 +02:00
parent 27c2c6c6d7
commit fc176c1fa6
1 changed files with 2 additions and 0 deletions

View File

@ -1776,7 +1776,9 @@ void command_playlist_update_write(
**/ **/
bool command_event(enum event_command cmd, void *data) bool command_event(enum event_command cmd, void *data)
{ {
#ifdef HAVE_DISCORD
static bool discord_inited = false; static bool discord_inited = false;
#endif
bool boolean = false; bool boolean = false;
switch (cmd) switch (cmd)