Mercurial > cpython-lru_cache-weakref
diff Python/strdup.c @ 4175:bb5b9ff72de1 legacy-trunk
Needed more includes...
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 29 Aug 1996 18:10:30 +0000 |
| parents | d241bfda7b74 |
| children | 8efa37a770c6 |
line wrap: on
line diff
--- a/Python/strdup.c Thu Aug 29 17:48:26 1996 +0000 +++ b/Python/strdup.c Thu Aug 29 18:10:30 1996 +0000 @@ -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)
