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/mp3_encoder.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/mp3_encoder.c')
-rw-r--r-- | apps/plugins/mp3_encoder.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/plugins/mp3_encoder.c b/apps/plugins/mp3_encoder.c index 70372933e0..d1ef2e0a7c 100644 --- a/apps/plugins/mp3_encoder.c +++ b/apps/plugins/mp3_encoder.c | |||
@@ -12,12 +12,15 @@ | |||
12 | * Library General Public License for more details. */ | 12 | * Library General Public License for more details. */ |
13 | 13 | ||
14 | #include "plugin.h" | 14 | #include "plugin.h" |
15 | #include "mem_function_wrappers.h" | ||
15 | 16 | ||
16 | PLUGIN_HEADER | 17 | PLUGIN_HEADER |
17 | PLUGIN_IRAM_DECLARE | 18 | PLUGIN_IRAM_DECLARE |
18 | 19 | ||
19 | static struct plugin_api* rb; | 20 | static struct plugin_api* rb; |
20 | 21 | ||
22 | MEM_FUNCTION_WRAPPERS(rb); | ||
23 | |||
21 | #define SAMP_PER_FRAME 1152 | 24 | #define SAMP_PER_FRAME 1152 |
22 | #define SAMPL2 576 | 25 | #define SAMPL2 576 |
23 | #define SBLIMIT 32 | 26 | #define SBLIMIT 32 |