From 4b592ec2959fb07eba0b9041f1cb19b81a9ef56a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Tue, 1 Aug 2023 02:37:48 +0200 Subject: [PATCH] Fix build in bare configurations --- nncmpp.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/nncmpp.c b/nncmpp.c index 97a0031..27b3210 100644 --- a/nncmpp.c +++ b/nncmpp.c @@ -2860,8 +2860,11 @@ app_process_mouse (termo_mouse_event_t type, int x, int y, int button, case WIDGET_LIST: return app_process_action (ACTION_SCROLL_UP); case WIDGET_VOLUME: - return app_process_action (g.pulse_control_requested - ? ACTION_PULSE_VOLUME_UP : ACTION_MPD_VOLUME_UP); + return app_process_action ( +#ifdef WITH_PULSE + g.pulse_control_requested ? ACTION_PULSE_VOLUME_UP : +#endif // WITH_PULSE + ACTION_MPD_VOLUME_UP); case WIDGET_GAUGE: return app_process_action (ACTION_MPD_FORWARD); } @@ -2872,8 +2875,11 @@ app_process_mouse (termo_mouse_event_t type, int x, int y, int button, case WIDGET_LIST: return app_process_action (ACTION_SCROLL_DOWN); case WIDGET_VOLUME: - return app_process_action (g.pulse_control_requested - ? ACTION_PULSE_VOLUME_DOWN : ACTION_MPD_VOLUME_DOWN); + return app_process_action ( +#ifdef WITH_PULSE + g.pulse_control_requested ? ACTION_PULSE_VOLUME_DOWN : +#endif // WITH_PULSE + ACTION_MPD_VOLUME_DOWN); case WIDGET_GAUGE: return app_process_action (ACTION_MPD_BACKWARD); }