summaryrefslogtreecommitdiff
path: root/apps/menus
diff options
context:
space:
mode:
authorMagnus Holmgren <magnushol@gmail.com>2007-02-15 17:30:22 +0000
committerMagnus Holmgren <magnushol@gmail.com>2007-02-15 17:30:22 +0000
commit51e885d5977c786266329bb2cf93ceb7d8665b12 (patch)
treea757a7228aec328585b926c7e73c61c1c883deff /apps/menus
parentfd14fa2051fe74f40aa9e5f46adcbdabc4b07adf (diff)
Fix simulator builds with logf enabled.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12316 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menus')
-rw-r--r--apps/menus/main_menu.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/menus/main_menu.c b/apps/menus/main_menu.c
index 075bd2a9c8..f51eb3b110 100644
--- a/apps/menus/main_menu.c
+++ b/apps/menus/main_menu.c
@@ -46,6 +46,9 @@
#include "buffer.h"
#include "splash.h"
#include "debug_menu.h"
+#if defined(SIMULATOR) && defined(ROCKBOX_HAS_LOGF)
+#include "logfdisp.h"
+#endif
/* lazy coders can use this function if the needed callback
is just to say if the item is shown or not */
@@ -354,8 +357,8 @@ MENUITEM_FUNCTION(debug_menu_item, ID2P(LANG_DEBUG),
MENUITEM_FUNCTION(simulate_usb_item, ID2P(LANG_USB),
(menu_function)simulate_usb, NULL, NOICON);
#ifdef ROCKBOX_HAS_LOGF
-MENUITEM_FUNCTION(logfdisplay_item, "logf",logfdisplay, NULL, NOICON);
-MENUITEM_FUNCTION(logfdump_item, "logfdump",logfdump, NULL, NOICON);
+MENUITEM_FUNCTION(logfdisplay_item, "logf",(int (*)(void)) logfdisplay, NULL, NOICON);
+MENUITEM_FUNCTION(logfdump_item, "logfdump",(int (*)(void)) logfdump, NULL, NOICON);
#endif
#endif