Fix red builds more

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8394 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Brandon Low 2006-01-19 20:44:57 +00:00
parent 178a85f31c
commit 3249f3eb87

View file

@ -458,7 +458,7 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter)
(void)parameter;
exit(0);
#else
#ifndef HAVE_POWEROFF_WHILE_CHARGING
#if defined(HAVE_CHARGING) && !defined(HAVE_POWEROFF_WHILE_CHARGING)
if(!charger_inserted())
#endif
{