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/battery_bench.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/plugins/battery_bench.c') diff --git a/apps/plugins/battery_bench.c b/apps/plugins/battery_bench.c index 13ce172f67..fef3f36db2 100644 --- a/apps/plugins/battery_bench.c +++ b/apps/plugins/battery_bench.c @@ -20,6 +20,7 @@ #ifndef SIMULATOR /* not for the simulator */ #include "plugin.h" +#include "mem_function_wrappers.h" PLUGIN_HEADER #define BATTERY_LOG "/battery_bench.txt" @@ -98,6 +99,7 @@ PLUGIN_HEADER /****************************** Plugin Entry Point ****************************/ static struct plugin_api* rb; +MEM_FUNCTION_WRAPPERS(rb); int main(void); bool exit_tsr(bool); void thread(void); -- cgit v1.2.3