From 3249f3eb87f2b4b406bf7aead50adeb6a4e4e52e Mon Sep 17 00:00:00 2001 From: Brandon Low Date: Thu, 19 Jan 2006 20:44:57 +0000 Subject: [PATCH] Fix red builds more git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8394 a1c6a512-1295-4272-9138-f99709370657 --- apps/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/misc.c b/apps/misc.c index 755eba095f..6ca28cbb01 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -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 {