summaryrefslogtreecommitdiff
path: root/apps/plugins/iriver_flash.c
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-08-25 19:00:58 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-08-25 19:00:58 +0000
commit7014faee69119b832451a136c25e63722100b85e (patch)
treea31c20e5dcb920761924aa57a7507d8c33959ea4 /apps/plugins/iriver_flash.c
parentb11767b7ae883f48e9020a7b137ddba5360d31af (diff)
downloadrockbox-7014faee69119b832451a136c25e63722100b85e.zip
rockbox-7014faee69119b832451a136c25e63722100b85e.tar.gz
rockbox-7014faee69119b832451a136c25e63722100b85e.tar.bz2
rockbox-7014faee69119b832451a136c25e63722100b85e.tar.xz
Remove build conditions inside .c plugin files
Rather use the Makefile to specify which files must be built Fix color builds with test plugins enabled (test_scanrate gave an empty .o file) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27886 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/iriver_flash.c')
-rw-r--r--apps/plugins/iriver_flash.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/apps/plugins/iriver_flash.c b/apps/plugins/iriver_flash.c
index a1ce22c..b744eac 100644
--- a/apps/plugins/iriver_flash.c
+++ b/apps/plugins/iriver_flash.c
@@ -27,16 +27,10 @@
unsigned char *audiobuf;
ssize_t audiobuf_size;
-#ifdef IRIVER_H100_SERIES
-#define PLATFORM_ID ID_IRIVER_H100
-#else
-#undef PLATFORM_ID /* this platform is not (yet) flashable */
+#ifndef IRIVER_H100_SERIES
+#error this platform is not (yet) flashable
#endif
-#ifdef PLATFORM_ID
-
-
-
#if CONFIG_KEYPAD == IRIVER_H100_PAD
#define KEY1 BUTTON_OFF
#define KEY2 BUTTON_ON
@@ -770,5 +764,3 @@ enum plugin_status plugin_start(const void* parameter)
return PLUGIN_OK;
}
-
-#endif /* ifdef PLATFORM_ID */