diff options
Diffstat (limited to 'apps/plugins/firmware_flash.c')
-rw-r--r-- | apps/plugins/firmware_flash.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/plugins/firmware_flash.c b/apps/plugins/firmware_flash.c index 10b4145edd..d16a847bb2 100644 --- a/apps/plugins/firmware_flash.c +++ b/apps/plugins/firmware_flash.c | |||
@@ -47,6 +47,7 @@ | |||
47 | /* We should never check for ARCHOS_* defines in source code. We must | 47 | /* We should never check for ARCHOS_* defines in source code. We must |
48 | check for features/hardware that have been defined in config-*.h files. | 48 | check for features/hardware that have been defined in config-*.h files. |
49 | This makes it easier for us to maintain portability. */ | 49 | This makes it easier for us to maintain portability. */ |
50 | #define A_SUPPORTED_PLATFORM 1 | ||
50 | 51 | ||
51 | #if defined(ARCHOS_PLAYER) | 52 | #if defined(ARCHOS_PLAYER) |
52 | #define FILE_TYPE "player" | 53 | #define FILE_TYPE "player" |
@@ -65,9 +66,12 @@ | |||
65 | #define KEEP MASK_ADR /* keep the mask value */ | 66 | #define KEEP MASK_ADR /* keep the mask value */ |
66 | #define PLATFORM_ID ID_FM | 67 | #define PLATFORM_ID ID_FM |
67 | #else | 68 | #else |
68 | #error "No known platform given!" | 69 | /* this platform is not (yet) flashable */ |
70 | #undef A_SUPPORTED_PLATFORM | ||
69 | #endif | 71 | #endif |
70 | 72 | ||
73 | #ifdef A_SUPPORTED_PLATFORM | ||
74 | |||
71 | /* result of the CheckFirmwareFile() function */ | 75 | /* result of the CheckFirmwareFile() function */ |
72 | typedef enum | 76 | typedef enum |
73 | { | 77 | { |
@@ -1004,4 +1008,5 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
1004 | return PLUGIN_OK; | 1008 | return PLUGIN_OK; |
1005 | } | 1009 | } |
1006 | 1010 | ||
1011 | #endif /* ifdef A_SUPPORTED_PLATFORM */ | ||
1007 | #endif /* #ifndef SIMULATOR */ | 1012 | #endif /* #ifndef SIMULATOR */ |