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/rockpaint.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/rockpaint.c')
-rw-r--r-- | apps/plugins/rockpaint.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/plugins/rockpaint.c b/apps/plugins/rockpaint.c index da8f8052cb..29296ac1b6 100644 --- a/apps/plugins/rockpaint.c +++ b/apps/plugins/rockpaint.c | |||
@@ -30,6 +30,7 @@ | |||
30 | #include "errno.h" | 30 | #include "errno.h" |
31 | #include "lib/bmp.h" | 31 | #include "lib/bmp.h" |
32 | #include "lib/rgb_hsv.h" | 32 | #include "lib/rgb_hsv.h" |
33 | #include "mem_function_wrappers.h" | ||
33 | 34 | ||
34 | PLUGIN_HEADER | 35 | PLUGIN_HEADER |
35 | 36 | ||
@@ -224,6 +225,8 @@ int errno; | |||
224 | 225 | ||
225 | static struct plugin_api* rb; | 226 | static struct plugin_api* rb; |
226 | 227 | ||
228 | MEM_FUNCTION_WRAPPERS(rb); | ||
229 | |||
227 | static int drawcolor=0; /* Current color (in palette) */ | 230 | static int drawcolor=0; /* Current color (in palette) */ |
228 | static int bgdrawcolor=9; /* Current background color (in palette) */ | 231 | static int bgdrawcolor=9; /* Current background color (in palette) */ |
229 | bool isbg = false; /* gruik ugly hack alert */ | 232 | bool isbg = false; /* gruik ugly hack alert */ |