summaryrefslogtreecommitdiff
path: root/apps/plugins/pdbox/PDa/src/s_loader.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/pdbox/PDa/src/s_loader.c')
-rw-r--r--apps/plugins/pdbox/PDa/src/s_loader.c18
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
24typedef void (*t_xxx)(void); 29typedef void (*t_xxx)(void);
25 30
31#ifndef ROCKBOX
26static char sys_dllextent[] = 32static 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
47void class_set_extern_dir(t_symbol *s); 54void class_set_extern_dir(t_symbol *s);
48 55
49#ifdef STATIC 56#ifdef STATIC
50int sys_load_lib(char *dirname, char *classname) 57int 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
53int sys_load_lib(char *dirname, char *classname) 69int sys_load_lib(char *dirname, char *classname)
54{ 70{