From 2ad25c88182a1d898b7ba460beba3bd2231be94b Mon Sep 17 00:00:00 2001 From: Tom Ross Date: Sat, 17 Feb 2007 23:06:22 +0000 Subject: Kill a few warnings in plugins. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12366 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/blackjack.c | 2 +- apps/plugins/chopper.c | 4 ++-- apps/plugins/doom/w_wad.c | 2 +- apps/plugins/vu_meter.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/plugins/blackjack.c b/apps/plugins/blackjack.c index a4c22797e8..728924da3e 100644 --- a/apps/plugins/blackjack.c +++ b/apps/plugins/blackjack.c @@ -824,7 +824,7 @@ static signed int blackjack_get_amount(char message[20], signed int lower_limit, rb->lcd_putsxy(LCD_WIDTH/2 - 9*w, LCD_HEIGHT/2 - 4*h - 1, message); rb->snprintf(str, 9, "$%d", amount); rb->lcd_putsxy(LCD_WIDTH/2 - 9*w, LCD_HEIGHT/2 - 3*h, str); -#if (CONFIG_KEY == IPOD_3G_PAD) || (CONFIG_KEYPAD == IPOD_4G_PAD) +#if (CONFIG_KEYPAD == IPOD_3G_PAD) || (CONFIG_KEYPAD == IPOD_4G_PAD) rb->lcd_putsxy(LCD_WIDTH/2 - 9*w, LCD_HEIGHT/2 - h-2, " >>|: +1"); rb->lcd_putsxy(LCD_WIDTH/2 - 9*w, LCD_HEIGHT/2 - 1, " |<<: -1"); rb->lcd_putsxy(LCD_WIDTH/2 - 9*w, LCD_HEIGHT/2 + h, "SCROLL+: +10"); diff --git a/apps/plugins/chopper.c b/apps/plugins/chopper.c index 381b54a7e2..d636b2db4e 100644 --- a/apps/plugins/chopper.c +++ b/apps/plugins/chopper.c @@ -618,7 +618,7 @@ static int chopMenu(int menunum) { "Steep", -1 }, }; -#if HAVE_LCD_COLOR +#ifdef HAVE_LCD_COLOR rb->lcd_set_foreground(LCD_WHITE); rb->lcd_set_background(LCD_BLACK); #elif LCD_DEPTH == 2 @@ -920,7 +920,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) #if LCD_DEPTH > 1 rb->lcd_set_backdrop(NULL); #endif -#if HAVE_LCD_COLOR +#ifdef HAVE_LCD_COLOR rb->lcd_set_background(LCD_BLACK); rb->lcd_set_foreground(LCD_WHITE); #endif diff --git a/apps/plugins/doom/w_wad.c b/apps/plugins/doom/w_wad.c index 1e3406199d..48d695c3b4 100644 --- a/apps/plugins/doom/w_wad.c +++ b/apps/plugins/doom/w_wad.c @@ -512,7 +512,7 @@ void W_ReadLump(int lump, void *dest) { int c; -#if DEBUGCACHE +#ifdef DEBUGCACHE if(gamestate==GS_LEVEL) printf("Loading %s\n", lumpinfo[lump].name); #endif diff --git a/apps/plugins/vu_meter.c b/apps/plugins/vu_meter.c index 4a68088270..17f4e58165 100644 --- a/apps/plugins/vu_meter.c +++ b/apps/plugins/vu_meter.c @@ -131,7 +131,7 @@ PLUGIN_HEADER const struct plugin_api* rb; -#if SIMULATOR && (CONFIG_CODEC != SWCODEC) +#if defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC) #define mas_codec_readreg(x) rand()%MAX_PEAK #endif -- cgit v1.2.3