diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2012-12-26 17:51:43 +0100 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2012-12-26 17:52:15 +0100 |
commit | 64d048be2bf6c3977a29bd03a47b19c2c5cf58cd (patch) | |
tree | d1619749e17dd064ae68cb356ce3853c48f80587 /apps/menus | |
parent | 5caaf70f345ee1b2a49cffe4dc779e1d810ba2cc (diff) | |
download | rockbox-64d048be2bf6c3977a29bd03a47b19c2c5cf58cd.tar.gz rockbox-64d048be2bf6c3977a29bd03a47b19c2c5cf58cd.zip |
Make code that depends on HAVE_USB_CHARGING_ENABLE check HAVE_USBSTACK.
This fixes building without HAVE_USBSTACK
Change-Id: If8fec87a3ed4de583864ed2bab69be1f2ad8ac52
Diffstat (limited to 'apps/menus')
-rw-r--r-- | apps/menus/settings_menu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/menus/settings_menu.c b/apps/menus/settings_menu.c index 95423a20fa..23807e2adc 100644 --- a/apps/menus/settings_menu.c +++ b/apps/menus/settings_menu.c | |||
@@ -173,7 +173,7 @@ MENUITEM_SETTING(battery_capacity, &global_settings.battery_capacity, NULL); | |||
173 | #if BATTERY_TYPES_COUNT > 1 | 173 | #if BATTERY_TYPES_COUNT > 1 |
174 | MENUITEM_SETTING(battery_type, &global_settings.battery_type, NULL); | 174 | MENUITEM_SETTING(battery_type, &global_settings.battery_type, NULL); |
175 | #endif | 175 | #endif |
176 | #ifdef HAVE_USB_CHARGING_ENABLE | 176 | #if defined (HAVE_USBSTACK) && defined(HAVE_USB_CHARGING_ENABLE) |
177 | static int usbcharging_callback(int action,const struct menu_item_ex *this_item) | 177 | static int usbcharging_callback(int action,const struct menu_item_ex *this_item) |
178 | { | 178 | { |
179 | (void)this_item; | 179 | (void)this_item; |
@@ -194,7 +194,7 @@ MAKE_MENU(battery_menu, ID2P(LANG_BATTERY_MENU), 0, Icon_NOICON, | |||
194 | #if BATTERY_TYPES_COUNT > 1 | 194 | #if BATTERY_TYPES_COUNT > 1 |
195 | &battery_type, | 195 | &battery_type, |
196 | #endif | 196 | #endif |
197 | #ifdef HAVE_USB_CHARGING_ENABLE | 197 | #if defined (HAVE_USBSTACK) && defined(HAVE_USB_CHARGING_ENABLE) |
198 | &usb_charging, | 198 | &usb_charging, |
199 | #endif | 199 | #endif |
200 | ); | 200 | ); |