summaryrefslogtreecommitdiff
path: root/embed.h
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2001-07-05 00:52:57 +0000
committerGurusamy Sarathy <gsar@cpan.org>2001-07-05 00:52:57 +0000
commitcae6d0e5ad55f3d6c7902bf7cfc560481e827bb3 (patch)
tree215b3828567ca9dacc002b6bd8677ce13150a6db /embed.h
parent50dd6e574ff39b609595ddb16b2fe9f625a26f8c (diff)
downloadperl-cae6d0e5ad55f3d6c7902bf7cfc560481e827bb3.tar.gz
fix the binary compatibility issue when building with/without
usemymalloc by exporting Perl_malloc() et al as simple wrappers around the system functions (this allows most extensions built using one mode to coexist with perls built in the other mode) XXX the Perl_mfree() wrapper might need to do return(free()) on platforms where Free_t isn't "void" p4raw-id: //depot/perl@11152
Diffstat (limited to 'embed.h')
-rw-r--r--embed.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/embed.h b/embed.h
index 96a9dd715d..21bde98763 100644
--- a/embed.h
+++ b/embed.h
@@ -3084,11 +3084,11 @@
# if defined(PERL_IMPLICIT_SYS)
# endif
#endif
-#if defined(MYMALLOC)
#define malloc Perl_malloc
#define calloc Perl_calloc
#define realloc Perl_realloc
#define mfree Perl_mfree
+#if defined(MYMALLOC)
#define malloced_size Perl_malloced_size
#endif
#define get_context Perl_get_context