diff options
author | Nils Wallménius <nils@rockbox.org> | 2007-06-13 15:35:07 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2007-06-13 15:35:07 +0000 |
commit | c7f9ca4067f26ba3d0471d50ed3f06b047171b50 (patch) | |
tree | 9bfaf2d5019c075ad97540a2beed8d68277ca021 /apps/plugins/battery_bench.c | |
parent | f50bd1151a65b1aeefaeab545187fba29881b800 (diff) | |
download | rockbox-c7f9ca4067f26ba3d0471d50ed3f06b047171b50.tar.gz rockbox-c7f9ca4067f26ba3d0471d50ed3f06b047171b50.zip |
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
Diffstat (limited to 'apps/plugins/battery_bench.c')
-rw-r--r-- | apps/plugins/battery_bench.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ | |||
20 | #ifndef SIMULATOR /* not for the simulator */ | 20 | #ifndef SIMULATOR /* not for the simulator */ |
21 | 21 | ||
22 | #include "plugin.h" | 22 | #include "plugin.h" |
23 | #include "mem_function_wrappers.h" | ||
23 | PLUGIN_HEADER | 24 | PLUGIN_HEADER |
24 | 25 | ||
25 | #define BATTERY_LOG "/battery_bench.txt" | 26 | #define BATTERY_LOG "/battery_bench.txt" |
@@ -98,6 +99,7 @@ PLUGIN_HEADER | |||
98 | 99 | ||
99 | /****************************** Plugin Entry Point ****************************/ | 100 | /****************************** Plugin Entry Point ****************************/ |
100 | static struct plugin_api* rb; | 101 | static struct plugin_api* rb; |
102 | MEM_FUNCTION_WRAPPERS(rb); | ||
101 | int main(void); | 103 | int main(void); |
102 | bool exit_tsr(bool); | 104 | bool exit_tsr(bool); |
103 | void thread(void); | 105 | void thread(void); |