summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/menus/radio_menu.c4
-rw-r--r--apps/recorder/recording.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/apps/menus/radio_menu.c b/apps/menus/radio_menu.c
index 2a15fe8ee5..e787aaa3e6 100644
--- a/apps/menus/radio_menu.c
+++ b/apps/menus/radio_menu.c
@@ -28,9 +28,10 @@
#include "settings.h"
#include "presets.h"
#include "exported_menus.h"
-#include "recording.h" /* recording_screen() */
#include "sound_menu.h" /* recording_menu() */
+#ifdef HAVE_RECORDING
+#include "recording.h" /* recording_screen() */
#if defined(HAVE_FMRADIO_REC) && CONFIG_CODEC == SWCODEC
#define FM_RECORDING_SCREEN
@@ -75,6 +76,7 @@ static int fm_recording_settings(void)
MENUITEM_FUNCTION(recsettings_item, 0, ID2P(LANG_RECORDING_SETTINGS),
fm_recording_settings, NULL, NULL, Icon_Recording);
#endif /* defined(HAVE_FMRADIO_REC) || CONFIG_CODEC != SWCODEC */
+#endif /* HAVE_RECORDING */
#ifndef FM_PRESET
MENUITEM_FUNCTION(radio_presets_item, 0, ID2P(LANG_PRESET),
diff --git a/apps/recorder/recording.h b/apps/recorder/recording.h
index eb766e162d..406986e8e0 100644
--- a/apps/recorder/recording.h
+++ b/apps/recorder/recording.h
@@ -20,6 +20,8 @@
****************************************************************************/
#ifndef RECORDING_H
#define RECORDING_H
+
+#include "config.h"
#include "audio.h"
bool in_recording_screen(void);