From fac05ab2f755318bb42ce0eca55eb4061358bad1 Mon Sep 17 00:00:00 2001 From: Karl Kurbjun Date: Mon, 5 Oct 2009 02:17:27 +0000 Subject: Fix Red git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22935 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 3 ++- apps/plugin.h | 2 ++ firmware/drivers/button.c | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/plugin.c b/apps/plugin.c index c37b2fb29b..a2059266b2 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -668,8 +668,9 @@ static const struct plugin_api rockbox_api = { appsversion, /* new stuff at the end, sort into place next time the API gets incompatible */ - +#ifdef HAVE_BUTTON_DATA button_status_wdata, +#endif }; int plugin_load(const char* plugin, const void* parameter) diff --git a/apps/plugin.h b/apps/plugin.h index 344026f986..b060104373 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -837,7 +837,9 @@ struct plugin_api { /* new stuff at the end, sort into place next time the API gets incompatible */ +#ifdef HAVE_BUTTON_DATA int (*button_status_wdata)(int *pdata); +#endif }; /* plugin header */ diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index 6e30cb116d..088ba0a4c5 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c @@ -305,7 +305,9 @@ static void button_tick(void) } } lastbtn = btn & ~(BUTTON_REL | BUTTON_REPEAT); +#ifdef HAVE_BUTTON_DATA lastdata = data; +#endif } #ifdef HAVE_ADJUSTABLE_CPU_FREQ -- cgit v1.2.3