summaryrefslogtreecommitdiffstats
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/blackjack.c2
-rw-r--r--apps/plugins/chopper.c4
-rw-r--r--apps/plugins/doom/w_wad.c2
-rw-r--r--apps/plugins/vu_meter.c2
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