diff Mac/Python/macgetargv.c @ 13547:db963a615bc9 legacy-trunk

ANSIfication step 2: make sure all needed prototypes are available, and all needed header files included.
author Jack Jansen <jack.jansen@cwi.nl>
date Tue, 11 Jul 2000 21:16:03 +0000
parents bac045b85263
children a901c2c0166b
line wrap: on
line diff
--- a/Mac/Python/macgetargv.c	Tue Jul 11 21:14:21 2000 +0000
+++ b/Mac/Python/macgetargv.c	Tue Jul 11 21:16:03 2000 +0000
@@ -53,15 +53,16 @@
 /* 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 */