From: Guido van Rossum Date: Tue, 28 Apr 1998 16:10:19 +0000 (+0000) Subject: Add a declaration for strdup() for the Mac. X-Git-Tag: v1.5.2a1~789 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=19efc5fb803384043c39e6341fb20a8cea11c3a3;p=python Add a declaration for strdup() for the Mac. (Jack) --- diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c index 0c12a07696..3de079fc63 100644 --- a/Modules/parsermodule.c +++ b/Modules/parsermodule.c @@ -26,6 +26,9 @@ /* ISTERMINAL() / ISNONTERMINAL() */ #include "compile.h" /* PyNode_Compile() */ +#ifdef macintosh +char *strdup Py_PROTO((char *)); +#endif /* String constants used to initialize module attributes. *