Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "ansidecl.h"
-#include <stdlib.h>
+#define size_t unsigned int
+#define ptrdiff_t int
+#define NULL 0
+#define __ONEFILE
#include "gmalloc.h"
/* Old hook values. */
static PTR EXFUN((*old_malloc_hook), (size_t size));
static PTR EXFUN((*old_realloc_hook), (PTR ptr, size_t size));
+
/* Function to call when something awful happens. */
-static void EXFUN((*abortfunc), (void)) = abort;
+extern void abort();
+static void EXFUN((*abortfunc), (NOARGS)) = (void (*)()) abort;
/* Arbitrary magical numbers. */
#define MAGICWORD 0xfedabeeb
}
void
-DEFUN(mcheck, (func), void EXFUN((*func), (void)))
+DEFUN(mcheck, (func), void EXFUN((*func), (NOARGS)))
{
static int mcheck_used = 0;