From 7014faee69119b832451a136c25e63722100b85e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Wed, 25 Aug 2010 19:00:58 +0000 Subject: 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 --- apps/plugins/iriver_flash.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'apps/plugins/iriver_flash.c') 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 */ -- cgit v1.1