From 83bce6e1b5eb01b6b269643fb1fb7e98310b2fc0 Mon Sep 17 00:00:00 2001 From: Peter D'Hoye Date: Fri, 30 Jun 2006 22:45:40 +0000 Subject: Combine two ifdefs git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10161 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/recording.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'apps/recorder/recording.c') diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index 065f9ae1fb..9f2fc1e18f 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c @@ -360,11 +360,9 @@ bool recording_screen(void) /* Set peak meter to recording mode */ peak_meter_playback(false); -#ifdef HAVE_SPDIF_IN -#ifndef SIMULATOR -if (global_settings.rec_source == SOURCE_SPDIF) - cpu_boost(true); -#endif +#if defined(HAVE_SPDIF_IN) && !defined(SIMULATOR) + if (global_settings.rec_source == SOURCE_SPDIF) + cpu_boost(true); #endif #else @@ -1015,11 +1013,9 @@ if (global_settings.rec_source == SOURCE_SPDIF) audio_stop_recording(); audio_close_recording(); -#ifdef HAVE_SPDIF_IN -#ifndef SIMULATOR -if (global_settings.rec_source == SOURCE_SPDIF) - cpu_boost(false); -#endif +#if defined(HAVE_SPDIF_IN) && !defined(SIMULATOR) + if (global_settings.rec_source == SOURCE_SPDIF) + cpu_boost(false); #endif #else -- cgit v1.2.3