This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Give a better error if malloc.c is used without MYMALLOC
[perl5.git] / malloc.c
index 05810b5..69b6b95 100644 (file)
--- a/malloc.c
+++ b/malloc.c
 #     define PERL_MAYBE_ALIVE  1
 #endif
 
+#ifndef MYMALLOC
+#  error "MYMALLOC is not defined"
+#endif
+
 #ifndef MUTEX_LOCK
 #  define MUTEX_LOCK(l)
 #endif