1
0
Fork 0
forked from len0rd/rockbox

Make code that depends on HAVE_USB_CHARGING_ENABLE check HAVE_USBSTACK.

This fixes building without HAVE_USBSTACK

Change-Id: If8fec87a3ed4de583864ed2bab69be1f2ad8ac52
This commit is contained in:
Frank Gevaerts 2012-12-26 17:51:43 +01:00
parent 5caaf70f34
commit 64d048be2b
4 changed files with 5 additions and 5 deletions

View file

@ -173,7 +173,7 @@ MENUITEM_SETTING(battery_capacity, &global_settings.battery_capacity, NULL);
#if BATTERY_TYPES_COUNT > 1
MENUITEM_SETTING(battery_type, &global_settings.battery_type, NULL);
#endif
#ifdef HAVE_USB_CHARGING_ENABLE
#if defined (HAVE_USBSTACK) && defined(HAVE_USB_CHARGING_ENABLE)
static int usbcharging_callback(int action,const struct menu_item_ex *this_item)
{
(void)this_item;
@ -194,7 +194,7 @@ MAKE_MENU(battery_menu, ID2P(LANG_BATTERY_MENU), 0, Icon_NOICON,
#if BATTERY_TYPES_COUNT > 1
&battery_type,
#endif
#ifdef HAVE_USB_CHARGING_ENABLE
#if defined (HAVE_USBSTACK) && defined(HAVE_USB_CHARGING_ENABLE)
&usb_charging,
#endif
);