summaryrefslogtreecommitdiffstats
path: root/Python/strdup.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-08-29 18:10:30 (GMT)
committerGuido van Rossum <guido@python.org>1996-08-29 18:10:30 (GMT)
commit927f6e68fba6c55d2c5bf861c74c1eb2380bfcf8 (patch)
tree301909a8b39b971ca478137ed8458adbd2395bbb /Python/strdup.c
parentbae29713ec7395396463bfd7981eab392c510fe6 (diff)
downloadcpython-927f6e68fba6c55d2c5bf861c74c1eb2380bfcf8.zip
cpython-927f6e68fba6c55d2c5bf861c74c1eb2380bfcf8.tar.gz
cpython-927f6e68fba6c55d2c5bf861c74c1eb2380bfcf8.tar.bz2
Needed more includes...
Diffstat (limited to 'Python/strdup.c')
-rw-r--r--Python/strdup.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/Python/strdup.c b/Python/strdup.c
index 5198e25..d21a0bc 100644
--- a/Python/strdup.c
+++ b/Python/strdup.c
@@ -1,13 +1,10 @@
/* strdup() replacement (from stdwin, if you must know) */
#include "config.h"
-#include <string.h>
+#include "myproto.h"
+#include "mymalloc.h"
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#else
-extern ANY *malloc Py_PROTO((size_t));
-#endif
+#include <string.h>
char *
strdup(str)