mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
ANSIfication step 2: make sure all needed prototypes are available, and all needed
header files included.
This commit is contained in:
parent
5e80a75799
commit
9ae898b415
19 changed files with 83 additions and 41 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue