summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2009-12-24 17:32:22 +0000
committerFrank Gevaerts <frank@gevaerts.be>2009-12-24 17:32:22 +0000
commit3c3c2aab7496aa4d29f8a70c65c14c1cfe885f1b (patch)
treeadac4b16619c20b4da5e5731aa2ea4d1b7f3854c /apps
parent081da63d097dd5a1de360abd6dcf5c0eb01ecdfc (diff)
downloadrockbox-3c3c2aab7496aa4d29f8a70c65c14c1cfe885f1b.tar.gz
rockbox-3c3c2aab7496aa4d29f8a70c65c14c1cfe885f1b.tar.bz2
rockbox-3c3c2aab7496aa4d29f8a70c65c14c1cfe885f1b.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/plugin.c2
-rw-r--r--apps/plugin.h4
2 files changed, 5 insertions, 1 deletions
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 */