summaryrefslogtreecommitdiff
path: root/iperlsys.h
diff options
context:
space:
mode:
Diffstat (limited to 'iperlsys.h')
-rw-r--r--iperlsys.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/iperlsys.h b/iperlsys.h
index cfdc39f9de..97f30e33b4 100644
--- a/iperlsys.h
+++ b/iperlsys.h
@@ -610,9 +610,15 @@ public:
#else /* PERL_OBJECT */
+#ifdef MYMALLOC
+#define PerlMem_malloc(size) Perl_malloc((size))
+#define PerlMem_realloc(buf, size) Perl_realloc((buf), (size))
+#define PerlMem_free(buf) Perl_mfree((buf))
+#else
#define PerlMem_malloc(size) malloc((size))
#define PerlMem_realloc(buf, size) realloc((buf), (size))
#define PerlMem_free(buf) free((buf))
+#endif
#endif /* PERL_OBJECT */