]> granicus.if.org Git - python/commitdiff
Completely disable the declarations for malloc() and friends. Use
authorGuido van Rossum <guido@python.org>
Thu, 21 Aug 1997 16:13:37 +0000 (16:13 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 21 Aug 1997 16:13:37 +0000 (16:13 +0000)
#ifdef though, so if you still need these for a really backwards
compiler you know what to do.

Include/mymalloc.h

index e55fe7baabd3e2f0141d4833e9ee11dbfb73d9af..b65523eb6cb2abf29fd9ade4833aba5db45730ab 100644 (file)
@@ -67,12 +67,13 @@ extern "C" {
 #pragma lib_export on
 #endif
 
-#ifndef HAVE_STDLIB_H
+/* The following should never be necessary */
+#ifdef NEED_TO_DECLARE_MALLOC_AND_FRIEND
 extern ANY *malloc Py_PROTO((size_t));
 extern ANY *calloc Py_PROTO((size_t, size_t));
 extern ANY *realloc Py_PROTO((ANY *, size_t));
 extern void free Py_PROTO((ANY *)); /* XXX sometimes int on Unix old systems */
-#endif /* !HAVE_STDLIB */
+#endif
 
 #ifndef NULL
 #define NULL ((ANY *)0)