summaryrefslogtreecommitdiff
path: root/apps/plugins/blackjack.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2007-06-13 15:35:07 +0000
committerNils Wallménius <nils@rockbox.org>2007-06-13 15:35:07 +0000
commitc7f9ca4067f26ba3d0471d50ed3f06b047171b50 (patch)
tree9bfaf2d5019c075ad97540a2beed8d68277ca021 /apps/plugins/blackjack.c
parentf50bd1151a65b1aeefaeab545187fba29881b800 (diff)
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/blackjack.c')
-rw-r--r--apps/plugins/blackjack.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/plugins/blackjack.c b/apps/plugins/blackjack.c
index f987eeb3b5..07af984a80 100644
--- a/apps/plugins/blackjack.c
+++ b/apps/plugins/blackjack.c
@@ -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