From a21004dee6e3963d18e2e27f993b8ae656a23599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Wallm=C3=A9nius?= Date: Mon, 19 May 2008 14:37:16 +0000 Subject: [PATCH] Fix FS#9010 warning in checkwps when building on an amd64 machine git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17582 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/wps_parser.c | 3 ++- apps/plugin.h | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/gui/wps_parser.c b/apps/gui/wps_parser.c index fe43272bb0..fd4db2e9de 100644 --- a/apps/gui/wps_parser.c +++ b/apps/gui/wps_parser.c @@ -23,6 +23,8 @@ #include "gwps.h" #include "file.h" #include "misc.h" +#include "plugin.h" + #ifdef __PCTOOL__ #define DEBUGF printf #define FONT_SYSFIXED 0 @@ -39,7 +41,6 @@ #include "gwps.h" #include "settings.h" -#include "plugin.h" #ifdef HAVE_LCD_BITMAP #include "bmp.h" diff --git a/apps/plugin.h b/apps/plugin.h index efb8c52060..c23e6457cf 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -34,6 +34,10 @@ #include #include #include + +void* plugin_get_buffer(size_t *buffer_size); + +#ifndef __PCTOOL__ #include "config.h" #include "system.h" #include "dir.h" @@ -796,7 +800,6 @@ extern unsigned char plugin_end_addr[]; #endif /* PLUGIN */ int plugin_load(const char* plugin, const void* parameter); -void* plugin_get_buffer(size_t *buffer_size); void* plugin_get_audio_buffer(size_t *buffer_size); #ifdef PLUGIN_USE_IRAM void plugin_iram_init(char *iramstart, char *iramcopy, size_t iram_size, @@ -858,4 +861,5 @@ enum plugin_status plugin_start(const struct plugin_api* rockbox, const void* pa } #endif /* ALIGN_BUFFER_WRAPPER */ +#endif /* __PCTOOL__ */ #endif