summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/pdbox/PDa/src/m_memory.c5
-rw-r--r--apps/plugins/pdbox/SOURCES2
2 files changed, 5 insertions, 2 deletions
diff --git a/apps/plugins/pdbox/PDa/src/m_memory.c b/apps/plugins/pdbox/PDa/src/m_memory.c
index ef33d3c1d3..f9ee378f87 100644
--- a/apps/plugins/pdbox/PDa/src/m_memory.c
+++ b/apps/plugins/pdbox/PDa/src/m_memory.c
@@ -2,8 +2,13 @@
* For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in this distribution. */
+#ifdef ROCKBOX
+#include "plugin.h"
+#define memset rb->memset
+#else /* ROCKBOX */
#include <stdlib.h>
#include <string.h>
+#endif /* ROCKBOX */
#include "m_pd.h"
#include "m_imp.h"
diff --git a/apps/plugins/pdbox/SOURCES b/apps/plugins/pdbox/SOURCES
index 70a50d1941..4d2284304c 100644
--- a/apps/plugins/pdbox/SOURCES
+++ b/apps/plugins/pdbox/SOURCES
@@ -35,9 +35,7 @@ PDa/src/m_class.c
PDa/src/m_obj.c
PDa/src/m_atom.c
*/
-/*
PDa/src/m_memory.c
-*/
/* PDa/src/m_binbuf.c Does not compile, file handling stuff */
/*