From 3c3c2aab7496aa4d29f8a70c65c14c1cfe885f1b Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Thu, 24 Dec 2009 17:32:22 +0000 Subject: [PATCH] Fix building simulators (at least on linux. cygwin and mingw might need more work) Also bump the plugin api version git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24110 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 2 ++ apps/plugin.h | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/plugin.c b/apps/plugin.c index bd88da6647..642ddff441 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -681,7 +681,9 @@ static const struct plugin_api rockbox_api = { viewportmanager_theme_enable, viewportmanager_theme_undo, #endif +#ifndef SIMULATOR &errno +#endif }; int plugin_load(const char* plugin, const void* parameter) diff --git a/apps/plugin.h b/apps/plugin.h index 0a9b8a9a50..7e63c85d0d 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -135,7 +135,7 @@ void* plugin_get_buffer(size_t *buffer_size); #define PLUGIN_MAGIC 0x526F634B /* RocK */ /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 178 +#define PLUGIN_API_VERSION 179 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any @@ -860,7 +860,9 @@ struct plugin_api { struct viewport *viewport); void (*viewportmanager_theme_undo)(enum screen_type screen, bool force_redraw); #endif +#ifndef SIMULATOR int* __errno; +#endif }; /* plugin header */