From 64a0fb8fd9a02a390d065c266420f8ad056bba19 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 17 Feb 2007 21:15:06 +0000 Subject: 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 --- firmware/export/lcd.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'firmware/export/lcd.h') diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index 37ad2b0cc2..fecf3f5426 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h @@ -151,7 +151,8 @@ typedef void lcd_fastpixelfunc_type(fb_data *address); #ifdef HAVE_LCD_BITMAP -#if defined(HAVE_LCD_COLOR) && LCD_REMOTE_DEPTH > 1 +#if defined(HAVE_LCD_COLOR) && defined(LCD_REMOTE_DEPTH) && \ + LCD_REMOTE_DEPTH > 1 /* Just return color for screens use */ static inline unsigned lcd_color_to_native(unsigned color) { return color; } -- cgit v1.2.3