summaryrefslogtreecommitdiff
path: root/apps/plugins/firmware_flash.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-12-15 13:16:09 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-12-15 13:16:09 +0000
commit633003c8964c864ff0ff5ad0049a81eb69e3ea6a (patch)
tree409141b9f2c9491bd4aaeed55a8c6c23d07464f7 /apps/plugins/firmware_flash.c
parent42ea60e459cfd61568df1a256e6f081b61932d60 (diff)
downloadrockbox-633003c8964c864ff0ff5ad0049a81eb69e3ea6a.zip
rockbox-633003c8964c864ff0ff5ad0049a81eb69e3ea6a.tar.gz
rockbox-633003c8964c864ff0ff5ad0049a81eb69e3ea6a.tar.bz2
rockbox-633003c8964c864ff0ff5ad0049a81eb69e3ea6a.tar.xz
prevent compiler errors on platforms we can't (currently) flash
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4158 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/firmware_flash.c')
-rw-r--r--apps/plugins/firmware_flash.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/plugins/firmware_flash.c b/apps/plugins/firmware_flash.c
index 10b4145..d16a847 100644
--- a/apps/plugins/firmware_flash.c
+++ b/apps/plugins/firmware_flash.c
@@ -47,6 +47,7 @@
/* We should never check for ARCHOS_* defines in source code. We must
check for features/hardware that have been defined in config-*.h files.
This makes it easier for us to maintain portability. */
+#define A_SUPPORTED_PLATFORM 1
#if defined(ARCHOS_PLAYER)
#define FILE_TYPE "player"
@@ -65,9 +66,12 @@
#define KEEP MASK_ADR /* keep the mask value */
#define PLATFORM_ID ID_FM
#else
-#error "No known platform given!"
+/* this platform is not (yet) flashable */
+#undef A_SUPPORTED_PLATFORM
#endif
+#ifdef A_SUPPORTED_PLATFORM
+
/* result of the CheckFirmwareFile() function */
typedef enum
{
@@ -1004,4 +1008,5 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
return PLUGIN_OK;
}
+#endif /* ifdef A_SUPPORTED_PLATFORM */
#endif /* #ifndef SIMULATOR */