diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugin.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 020bf61b1a..7f91415755 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -32,9 +32,14 @@ | |||
32 | #include "lang.h" | 32 | #include "lang.h" |
33 | 33 | ||
34 | #ifdef SIMULATOR | 34 | #ifdef SIMULATOR |
35 | #include <dlfcn.h> | 35 | #include <debug.h> |
36 | #include <debug.h> | 36 | #ifdef WIN32 |
37 | #define PREFIX(_x_) x11_ ## _x_ | 37 | #include "plugin-win32.h" |
38 | #define PREFIX(_x_) _x_ | ||
39 | #else | ||
40 | #include <dlfcn.h> | ||
41 | #define PREFIX(_x_) x11_ ## _x_ | ||
42 | #endif | ||
38 | #else | 43 | #else |
39 | #define PREFIX(_x_) _x_ | 44 | #define PREFIX(_x_) _x_ |
40 | #endif | 45 | #endif |
@@ -141,7 +146,11 @@ int plugin_load(char* plugin, void* parameter) | |||
141 | lcd_update(); | 146 | lcd_update(); |
142 | #endif | 147 | #endif |
143 | #ifdef SIMULATOR | 148 | #ifdef SIMULATOR |
149 | #ifdef WIN32 | ||
150 | snprintf(path, sizeof path, "%s", plugin); | ||
151 | #else | ||
144 | snprintf(path, sizeof path, "archos%s", plugin); | 152 | snprintf(path, sizeof path, "archos%s", plugin); |
153 | #endif | ||
145 | pd = dlopen(path, RTLD_NOW); | 154 | pd = dlopen(path, RTLD_NOW); |
146 | if (!pd) { | 155 | if (!pd) { |
147 | snprintf(buf, sizeof buf, "Can't open %s", plugin); | 156 | snprintf(buf, sizeof buf, "Can't open %s", plugin); |