summaryrefslogtreecommitdiff
path: root/apps/plugins/pdbox
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2009-05-28 16:42:32 +0000
committerDominik Wenger <domonoky@googlemail.com>2009-05-28 16:42:32 +0000
commitbebc8587cfa7896684278d824ed5b28b2e9f9df1 (patch)
tree6b82f3ef835b8a43c69740f5da0bc5551d3287b6 /apps/plugins/pdbox
parent8b8741fe7ca27347584d9ca91303a0895e111af5 (diff)
pdbox: new patch from wincent balin. make m_memory.c work in rockbox.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21117 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pdbox')
-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 */
/*