summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-08-21 16:13:37 (GMT)
committerGuido van Rossum <guido@python.org>1997-08-21 16:13:37 (GMT)
commitab589b945e84622715ea889a056cc64c2e58a40c (patch)
treed4fc2c8395a0d0e9b884d524fcb5dbc5e416155d
parent0078aaf950671ef5d1caf7374b49de96e0f37244 (diff)
downloadcpython-ab589b945e84622715ea889a056cc64c2e58a40c.zip
cpython-ab589b945e84622715ea889a056cc64c2e58a40c.tar.gz
cpython-ab589b945e84622715ea889a056cc64c2e58a40c.tar.bz2
Completely disable the declarations for malloc() and friends. Use
#ifdef though, so if you still need these for a really backwards compiler you know what to do.
-rw-r--r--Include/mymalloc.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Include/mymalloc.h b/Include/mymalloc.h
index e55fe7b..b65523e 100644
--- a/Include/mymalloc.h
+++ b/Include/mymalloc.h
@@ -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)