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
|
@ -20,6 +20,7 @@
|
|||
#include "plugin.h"
|
||||
#include "card_deck.h"
|
||||
#include "card_back.h"
|
||||
#include "mem_function_wrappers.h"
|
||||
|
||||
PLUGIN_HEADER
|
||||
|
||||
|
@ -213,6 +214,8 @@ extern const fb_data card_back[];
|
|||
/* global rockbox api */
|
||||
static struct plugin_api* rb;
|
||||
|
||||
MEM_FUNCTION_WRAPPERS(rb);
|
||||
|
||||
/* dealer and player card positions */
|
||||
unsigned int dealer_x, dealer_y, player_x, player_y;
|
||||
|
||||
|
@ -1399,7 +1402,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) {
|
|||
|
||||
(void)parameter;
|
||||
rb = api;
|
||||
|
||||
|
||||
#if LCD_DEPTH > 1
|
||||
rb->lcd_set_backdrop(NULL);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue