From 964c4ec6e95eeeb4fb5111b31206cd5983b6e869 Mon Sep 17 00:00:00 2001 From: radius Date: Mon, 18 Feb 2019 23:12:15 -0500 Subject: [PATCH] C89 build fix --- command.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/command.c b/command.c index f00456c36d..6820a27226 100644 --- a/command.c +++ b/command.c @@ -2508,6 +2508,9 @@ TODO: Add a setting for these tweaks */ bool is_idle = false; bool is_slowmotion = false; bool is_perfcnt_enable = false; +#ifdef HAVE_DISCORD + discord_userdata_t userdata; +#endif runloop_get_status(&is_paused, &is_idle, &is_slowmotion, &is_perfcnt_enable); @@ -2525,9 +2528,7 @@ TODO: Add a setting for these tweaks */ video_driver_cached_frame(); #ifdef HAVE_DISCORD - discord_userdata_t userdata; userdata.status = DISCORD_PRESENCE_GAME_PAUSED; - command_event(CMD_EVENT_DISCORD_UPDATE, &userdata); #endif }