summaryrefslogtreecommitdiff
path: root/firmware/panic.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-02-17 21:15:06 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-02-17 21:15:06 +0000
commit64a0fb8fd9a02a390d065c266420f8ad056bba19 (patch)
tree4aaf4ff5fcb83c41d132fe5a0c1e639fa7f9252b /firmware/panic.c
parentab0752c9c05eb1135e9d548e3fab36d13b75ebb9 (diff)
avoid using #if on undefined symbols, in preparation for -Wundef
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12357 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/panic.c')
-rw-r--r--firmware/panic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/panic.c b/firmware/panic.c
index 736d4bbf24..aaac9ba87b 100644
--- a/firmware/panic.c
+++ b/firmware/panic.c
@@ -102,7 +102,7 @@ void panicf( const char *fmt, ...)
/* try to restart firmware if ON is pressed */
#ifdef IRIVER_H100_SERIES
if ((GPIO1_READ & 0x22) == 0) /* check for ON button and !hold */
-#elif IRIVER_H300_SERIES
+#elif defined(IRIVER_H300_SERIES)
if ((GPIO1_READ & 0x22) == 0) /* check for ON button and !hold */
#elif CONFIG_CPU == SH7034
#if CONFIG_KEYPAD == PLAYER_PAD