From c7f9ca4067f26ba3d0471d50ed3f06b047171b50 Mon Sep 17 00:00:00 2001 From: Nils Wallménius Date: Wed, 13 Jun 2007 15:35:07 +0000 Subject: Accept FS#7264 'Build with -Os switch for coldfire targets'. Introduces MEM_FUNCTION_WRAPPERS(api) macro which adds wrappers functions to a plugin to make plugins link correctly when gcc calls mem* functions directly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13625 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/metronome.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/plugins/metronome.c') diff --git a/apps/plugins/metronome.c b/apps/plugins/metronome.c index 19a37a580a..daf3294b75 100644 --- a/apps/plugins/metronome.c +++ b/apps/plugins/metronome.c @@ -18,6 +18,7 @@ ****************************************************************************/ #include "plugin.h" #include "pluginlib_actions.h" +#include "mem_function_wrappers.h" PLUGIN_HEADER @@ -70,6 +71,8 @@ static const struct button_mapping iriver_syncaction[] = static struct plugin_api* rb; +MEM_FUNCTION_WRAPPERS(rb); + static int bpm = 120; static int period = 0; static int minitick = 0; @@ -159,7 +162,7 @@ static unsigned char sound[] = { 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85}; -void callback(unsigned char** start, int* size){ +void callback(unsigned char** start, size_t* size){ (void)start; /* unused parameter, avoid warning */ *size = NULL; /* end of data */ sound_active = false; -- cgit v1.2.3