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

@ -619,7 +619,7 @@ struct user_settings
#ifdef HAVE_SPDIF_POWER
bool spdif_enable; /* S/PDIF power on/off */
#endif
#ifdef HAVE_USB_CHARGING_ENABLE
#if defined (HAVE_USBSTACK) && defined(HAVE_USB_CHARGING_ENABLE)
int usb_charging;
#endif