forked from len0rd/rockbox
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
This commit is contained in:
parent
f50bd1151a
commit
c7f9ca4067
21 changed files with 105 additions and 29 deletions
|
@ -27,6 +27,7 @@
|
|||
#include "plugin.h"
|
||||
#include "playback_control.h"
|
||||
#include "oldmenuapi.h"
|
||||
#include "mem_function_wrappers.h"
|
||||
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
#include "gray.h"
|
||||
|
@ -186,6 +187,7 @@ PLUGIN_HEADER
|
|||
/******************************* Globals ***********************************/
|
||||
|
||||
static struct plugin_api* rb;
|
||||
MEM_FUNCTION_WRAPPERS(rb);
|
||||
|
||||
/* for portability of below JPEG code */
|
||||
#define MEMSET(p,v,c) rb->memset(p,v,c)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue