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/chessclock.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/chessclock.c')
-rw-r--r-- | apps/plugins/chessclock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/chessclock.c b/apps/plugins/chessclock.c index f1482df990..3dfb0fef6c 100644 --- a/apps/plugins/chessclock.c +++ b/apps/plugins/chessclock.c | |||
@@ -17,6 +17,7 @@ | |||
17 | * | 17 | * |
18 | ****************************************************************************/ | 18 | ****************************************************************************/ |
19 | #include "plugin.h" | 19 | #include "plugin.h" |
20 | #include "mem_function_wrappers.h" | ||
20 | 21 | ||
21 | PLUGIN_HEADER | 22 | PLUGIN_HEADER |
22 | 23 | ||
@@ -153,6 +154,7 @@ PLUGIN_HEADER | |||
153 | it's nice not to have to pass the api pointer in all function calls | 154 | it's nice not to have to pass the api pointer in all function calls |
154 | in the plugin */ | 155 | in the plugin */ |
155 | static struct plugin_api* rb; | 156 | static struct plugin_api* rb; |
157 | MEM_FUNCTION_WRAPPERS(rb); | ||
156 | #define MAX_PLAYERS 10 | 158 | #define MAX_PLAYERS 10 |
157 | 159 | ||
158 | static struct { | 160 | static struct { |
@@ -192,7 +194,6 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
192 | 194 | ||
193 | (void)parameter; | 195 | (void)parameter; |
194 | rb=api; | 196 | rb=api; |
195 | |||
196 | rb->memset(&settings, 0, sizeof(settings)); | 197 | rb->memset(&settings, 0, sizeof(settings)); |
197 | 198 | ||
198 | /* now go ahead and have fun! */ | 199 | /* now go ahead and have fun! */ |