From c64c5276794ac65ce6ee1b300a8178ec1e14f695 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Thu, 24 Feb 2011 21:59:36 +0100 Subject: [PATCH] RaaA: Exclude some apps/plugins/lib files which cause compile warnings and are not needed for the app build --- apps/plugins/lib/SOURCES | 6 ++++++ apps/plugins/lib/simple_viewer.c | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/apps/plugins/lib/SOURCES b/apps/plugins/lib/SOURCES index 6f17c70b90..3ed2ba7733 100644 --- a/apps/plugins/lib/SOURCES +++ b/apps/plugins/lib/SOURCES @@ -9,7 +9,9 @@ playback_control.c rgb_hsv.c buflib.c highscore.c +#ifndef APPLICATION simple_viewer.c +#endif display_text.c strncpy.c @@ -46,8 +48,10 @@ playergfx.c pluginlib_jpeg_idct_arm.S #endif +#ifndef APPLICATION pluginlib_jpeg_mem.c pluginlib_resize.c +#endif #ifndef HAVE_JPEG pluginlib_jpeg_load.c @@ -58,7 +62,9 @@ picture.c xlcd_core.c xlcd_draw.c xlcd_scroll.c +#ifndef APPLICATION pluginlib_bmp.c +#endif read_image.c #ifdef HAVE_LCD_COLOR diff --git a/apps/plugins/lib/simple_viewer.c b/apps/plugins/lib/simple_viewer.c index feb63d5090..16cbcb35de 100644 --- a/apps/plugins/lib/simple_viewer.c +++ b/apps/plugins/lib/simple_viewer.c @@ -48,13 +48,8 @@ static bool isbrchr(const unsigned char *str, int len) while(*p) { int n = rb->utf8seek(p, 1); -#ifdef APPLICATION /* HACK, need to find real cause of macro trouble */ - if (len == n && !strncmp(p, str, len)) - return true; -#else if (len == n && !rb->strncmp(p, str, len)) return true; -#endif p += n; } return false; -- 2.11.4.GIT