diff options
author | Peter D'Hoye <peter.dhoye@gmail.com> | 2009-07-03 22:16:11 +0000 |
---|---|---|
committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2009-07-03 22:16:11 +0000 |
commit | 0d4560cb0305029fa5f0739670286176ab47cb65 (patch) | |
tree | 9899f4324664a77e6a5884fdd1541818a28a2172 /apps/plugins/pdbox/PDa/src/s_loader.c | |
parent | eabeb928ddfdbe5fc6379efb87d9522803310649 (diff) | |
download | rockbox-0d4560cb0305029fa5f0739670286176ab47cb65.tar.gz rockbox-0d4560cb0305029fa5f0739670286176ab47cb65.zip |
Accept FS #10244 by Wincent Balin: more pdbox work done for GSoC; also some keyword and line-ending fixes by me
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21626 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pdbox/PDa/src/s_loader.c')
-rw-r--r-- | apps/plugins/pdbox/PDa/src/s_loader.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/apps/plugins/pdbox/PDa/src/s_loader.c b/apps/plugins/pdbox/PDa/src/s_loader.c index c5a8677f71..7f47b1f8f8 100644 --- a/apps/plugins/pdbox/PDa/src/s_loader.c +++ b/apps/plugins/pdbox/PDa/src/s_loader.c | |||
@@ -2,6 +2,10 @@ | |||
2 | * For information on usage and redistribution, and for a DISCLAIMER OF ALL | 2 | * For information on usage and redistribution, and for a DISCLAIMER OF ALL |
3 | * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ | 3 | * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ |
4 | 4 | ||
5 | #ifdef ROCKBOX | ||
6 | #include "plugin.h" | ||
7 | #include "pdbox.h" | ||
8 | #else /* ROCKBOX */ | ||
5 | #ifdef DL_OPEN | 9 | #ifdef DL_OPEN |
6 | #include <dlfcn.h> | 10 | #include <dlfcn.h> |
7 | #endif | 11 | #endif |
@@ -17,12 +21,14 @@ | |||
17 | #include <mach-o/dyld.h> | 21 | #include <mach-o/dyld.h> |
18 | #endif | 22 | #endif |
19 | #include <string.h> | 23 | #include <string.h> |
24 | #include <stdio.h> | ||
25 | #endif /* ROCKBOX */ | ||
20 | #include "m_pd.h" | 26 | #include "m_pd.h" |
21 | #include "s_stuff.h" | 27 | #include "s_stuff.h" |
22 | #include <stdio.h> | ||
23 | 28 | ||
24 | typedef void (*t_xxx)(void); | 29 | typedef void (*t_xxx)(void); |
25 | 30 | ||
31 | #ifndef ROCKBOX | ||
26 | static char sys_dllextent[] = | 32 | static char sys_dllextent[] = |
27 | #ifdef __FreeBSD__ | 33 | #ifdef __FreeBSD__ |
28 | ".pd_freebsd"; | 34 | ".pd_freebsd"; |
@@ -43,12 +49,22 @@ static char sys_dllextent[] = | |||
43 | #ifdef MSW | 49 | #ifdef MSW |
44 | ".dll"; | 50 | ".dll"; |
45 | #endif | 51 | #endif |
52 | #endif /* ROCKBOX */ | ||
46 | 53 | ||
47 | void class_set_extern_dir(t_symbol *s); | 54 | void class_set_extern_dir(t_symbol *s); |
48 | 55 | ||
49 | #ifdef STATIC | 56 | #ifdef STATIC |
50 | int sys_load_lib(char *dirname, char *classname) | 57 | int sys_load_lib(char *dirname, char *classname) |
58 | #ifdef ROCKBOX | ||
59 | { | ||
60 | (void) dirname; | ||
61 | (void) classname; | ||
62 | |||
63 | return 0; | ||
64 | } | ||
65 | #else /* ROCKBOX */ | ||
51 | { return 0;} | 66 | { return 0;} |
67 | #endif /* ROCKBOX */ | ||
52 | #else | 68 | #else |
53 | int sys_load_lib(char *dirname, char *classname) | 69 | int sys_load_lib(char *dirname, char *classname) |
54 | { | 70 | { |