diff options
| author | Hardeep Sidhu <dyp@pobox.com> | 2003-06-29 23:38:03 +0000 |
|---|---|---|
| committer | Hardeep Sidhu <dyp@pobox.com> | 2003-06-29 23:38:03 +0000 |
| commit | dd5d3f652f99096ced7313d3f2179aa36501f1f5 (patch) | |
| tree | 5b8abf7c7995023132499beedc9ae7e9af088d74 /apps | |
| parent | ba5dfbd71ef9ea1a1c786d02e10311decc9ced64 (diff) | |
| download | rockbox-dd5d3f652f99096ced7313d3f2179aa36501f1f5.zip rockbox-dd5d3f652f99096ced7313d3f2179aa36501f1f5.tar.gz rockbox-dd5d3f652f99096ced7313d3f2179aa36501f1f5.tar.bz2 rockbox-dd5d3f652f99096ced7313d3f2179aa36501f1f5.tar.xz | |
Changed win32 simulator to use plugin.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3784 a1c6a512-1295-4272-9138-f99709370657
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 020bf61..7f91415 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -32,9 +32,14 @@ #include "lang.h" #ifdef SIMULATOR -#include <dlfcn.h> -#include <debug.h> -#define PREFIX(_x_) x11_ ## _x_ + #include <debug.h> + #ifdef WIN32 + #include "plugin-win32.h" + #define PREFIX(_x_) _x_ + #else + #include <dlfcn.h> + #define PREFIX(_x_) x11_ ## _x_ + #endif #else #define PREFIX(_x_) _x_ #endif @@ -141,7 +146,11 @@ int plugin_load(char* plugin, void* parameter) lcd_update(); #endif #ifdef SIMULATOR +#ifdef WIN32 + snprintf(path, sizeof path, "%s", plugin); +#else snprintf(path, sizeof path, "archos%s", plugin); +#endif pd = dlopen(path, RTLD_NOW); if (!pd) { snprintf(buf, sizeof buf, "Can't open %s", plugin); |