summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2010-09-17 20:28:47 +0000
committerFrank Gevaerts <frank@gevaerts.be>2010-09-17 20:28:47 +0000
commitf366090562dcdc1c4c0efbd87476ef6c068b7db5 (patch)
tree17bf868c61d677ce7969bcc5312e5a69abeda428 /apps/gui
parentbd43690170ea9441226557bf58907654338b6029 (diff)
downloadrockbox-f366090562dcdc1c4c0efbd87476ef6c068b7db5.zip
rockbox-f366090562dcdc1c4c0efbd87476ef6c068b7db5.tar.gz
rockbox-f366090562dcdc1c4c0efbd87476ef6c068b7db5.tar.bz2
rockbox-f366090562dcdc1c4c0efbd87476ef6c068b7db5.tar.xz
Make disabling HAVE_PITCHSCREEN actually work without breaking the build
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28102 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/skin_engine/skin_tokens.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c
index bf024c7..1bfc861 100644
--- a/apps/gui/skin_engine/skin_tokens.c
+++ b/apps/gui/skin_engine/skin_tokens.c
@@ -120,7 +120,7 @@ char* get_dir(char* buf, int buf_size, const char* path, int level)
return buf;
}
-#if (CONFIG_CODEC != MAS3507D)
+#if (CONFIG_CODEC != MAS3507D) && defined (HAVE_PITCHSCREEN)
/* A helper to determine the enum value for pitch/speed.
When there are two choices (i.e. boolean), return 1 if the value is
@@ -1141,7 +1141,7 @@ const char *get_token_value(struct gui_wps *gwps,
}
#endif /* (CONFIG_CODEC == SWCODEC) */
-#if (CONFIG_CODEC != MAS3507D)
+#if (CONFIG_CODEC != MAS3507D) && defined (HAVE_PITCHSCREEN)
case SKIN_TOKEN_SOUND_PITCH:
{
int32_t pitch = sound_get_pitch();
@@ -1156,7 +1156,7 @@ const char *get_token_value(struct gui_wps *gwps,
}
#endif
-#if CONFIG_CODEC == SWCODEC
+#if (CONFIG_CODEC == SWCODEC) && defined (HAVE_PITCHSCREEN)
case SKIN_TOKEN_SOUND_SPEED:
{
int32_t pitch = sound_get_pitch();