From 3a37f46fc92fe7f9846a4077cc1a985c500d1174 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sun, 18 Feb 2007 10:07:27 +0000 Subject: Fix CONFIG_BACKLIGHT warnings. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12393 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/backlight.h | 4 ++-- firmware/export/button.h | 3 +-- firmware/export/config.h | 4 ++++ 3 files changed, 7 insertions(+), 4 deletions(-) (limited to 'firmware/export') diff --git a/firmware/export/backlight.h b/firmware/export/backlight.h index 1cd6c47f36..2873666dd8 100644 --- a/firmware/export/backlight.h +++ b/firmware/export/backlight.h @@ -26,7 +26,7 @@ void backlight_on(void); void backlight_off(void); void backlight_set_timeout(int index); -#ifdef CONFIG_BACKLIGHT +#if CONFIG_BACKLIGHT void backlight_init(void); #if defined(IAUDIO_X5) && !defined(SIMULATOR) @@ -54,7 +54,7 @@ void lcd_set_sleep_after_backlight_off(int index); extern const signed char lcd_sleep_timeout_value[]; #endif -#else /* ndef CONFIG_BACKLIGHT */ +#else /* CONFIG_BACKLIGHT == 0 */ #define backlight_init() #endif /* CONFIG_BACKLIGHT */ diff --git a/firmware/export/button.h b/firmware/export/button.h index 102d542d27..ea3effcaba 100644 --- a/firmware/export/button.h +++ b/firmware/export/button.h @@ -1,4 +1,3 @@ - /*************************************************************************** * __________ __ ___. * Open \______ \ ____ ____ | | _\_ |__ _______ ___ @@ -34,7 +33,7 @@ void button_clear_queue(void); #ifdef HAVE_LCD_BITMAP void button_set_flip(bool flip); /* turn 180 degrees */ #endif -#ifdef CONFIG_BACKLIGHT +#if CONFIG_BACKLIGHT void set_backlight_filter_keypress(bool value); #ifdef HAVE_REMOTE_LCD void set_remote_backlight_filter_keypress(bool value); diff --git a/firmware/export/config.h b/firmware/export/config.h index 8283b37fc8..1a3e0be325 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -230,6 +230,10 @@ #define CONFIG_LED 0 #endif +#ifndef CONFIG_BACKLIGHT +#define CONFIG_BACKLIGHT 0 +#endif + #ifndef CONFIG_CHARGING #define CONFIG_CHARGING 0 #endif -- cgit v1.2.3