diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2009-12-24 17:32:22 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2009-12-24 17:32:22 +0000 |
commit | 3c3c2aab7496aa4d29f8a70c65c14c1cfe885f1b (patch) | |
tree | adac4b16619c20b4da5e5731aa2ea4d1b7f3854c | |
parent | 081da63d097dd5a1de360abd6dcf5c0eb01ecdfc (diff) | |
download | rockbox-3c3c2aab7496aa4d29f8a70c65c14c1cfe885f1b.tar.gz 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
-rw-r--r-- | apps/plugin.c | 2 | ||||
-rw-r--r-- | apps/plugin.h | 4 |
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 = { | |||
681 | viewportmanager_theme_enable, | 681 | viewportmanager_theme_enable, |
682 | viewportmanager_theme_undo, | 682 | viewportmanager_theme_undo, |
683 | #endif | 683 | #endif |
684 | #ifndef SIMULATOR | ||
684 | &errno | 685 | &errno |
686 | #endif | ||
685 | }; | 687 | }; |
686 | 688 | ||
687 | int plugin_load(const char* plugin, const void* parameter) | 689 | 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); | |||
135 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 135 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
136 | 136 | ||
137 | /* increase this every time the api struct changes */ | 137 | /* increase this every time the api struct changes */ |
138 | #define PLUGIN_API_VERSION 178 | 138 | #define PLUGIN_API_VERSION 179 |
139 | 139 | ||
140 | /* update this to latest version if a change to the api struct breaks | 140 | /* update this to latest version if a change to the api struct breaks |
141 | backwards compatibility (and please take the opportunity to sort in any | 141 | backwards compatibility (and please take the opportunity to sort in any |
@@ -860,7 +860,9 @@ struct plugin_api { | |||
860 | struct viewport *viewport); | 860 | struct viewport *viewport); |
861 | void (*viewportmanager_theme_undo)(enum screen_type screen, bool force_redraw); | 861 | void (*viewportmanager_theme_undo)(enum screen_type screen, bool force_redraw); |
862 | #endif | 862 | #endif |
863 | #ifndef SIMULATOR | ||
863 | int* __errno; | 864 | int* __errno; |
865 | #endif | ||
864 | }; | 866 | }; |
865 | 867 | ||
866 | /* plugin header */ | 868 | /* plugin header */ |