From 19efc5fb803384043c39e6341fb20a8cea11c3a3 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 28 Apr 1998 16:10:19 +0000 Subject: [PATCH] Add a declaration for strdup() for the Mac. (Jack) --- Modules/parsermodule.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c index 0c12a07696f..3de079fc63c 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. *