git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/modchxj/mod_chxj/branches/RELEASE_0_8_0@1883
1a406e8e-add9-4483-a2c8-
d8cac5b7c224
/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
to 0 otherwise. */
-#define HAVE_MALLOC 1
+#define HAVE_MALLOC 0
/* Define to 1 if you have the `memcpy' function. */
#define HAVE_MEMCPY 1
/* #undef const */
/* Define to rpl_malloc if the replacement function should be used. */
-/* #undef malloc */
+#define malloc rpl_malloc
#define IMAGE_CACHE_LIMIT_FMT_LEN (20)
+#if HAVE_MALLOC == 0
+extern void *rpl_malloc(size_t n);
+#endif
#endif
/*
-#if HAVE_CONFIG_H
-# include <config.h>
-#endif
#undef malloc
#include <sys/types.h>
doc->do_init_flag = 0;
}
}
+
+
+#if HAVE_MALLOC == 0
+#include "malloc.c"
+#endif
/*
* vim:ts=2 et
*/