diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2000-07-11 21:16:03 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2000-07-11 21:16:03 (GMT) |
commit | 9ae898b415ad0758dbe1e1cb43f48f60bf8dfab0 (patch) | |
tree | c12e44689277430502086274a8cb1ab103a8d8be /Mac/Python/macgetargv.c | |
parent | 5e80a7579918dca87a31725e379cb3ea79e2a7a5 (diff) | |
download | cpython-9ae898b415ad0758dbe1e1cb43f48f60bf8dfab0.zip cpython-9ae898b415ad0758dbe1e1cb43f48f60bf8dfab0.tar.gz cpython-9ae898b415ad0758dbe1e1cb43f48f60bf8dfab0.tar.bz2 |
ANSIfication step 2: make sure all needed prototypes are available, and all needed
header files included.
Diffstat (limited to 'Mac/Python/macgetargv.c')
-rw-r--r-- | Mac/Python/macgetargv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Mac/Python/macgetargv.c b/Mac/Python/macgetargv.c index 1eb4a54..b4a3ec6 100644 --- a/Mac/Python/macgetargv.c +++ b/Mac/Python/macgetargv.c @@ -53,15 +53,16 @@ static int applocation_inited; /* Duplicate a string to the heap. We also export this since it isn't standard ** and others use it */ - +#ifndef HAVE_STRDUP char * -strdup(char *src) +strdup(const char *src) { char *dst = malloc(strlen(src) + 1); if (dst) strcpy(dst, src); return dst; } +#endif /* Initialize FSSpec and full name of current application */ |