From: Guido van Rossum Date: Wed, 8 Oct 1997 15:45:53 +0000 (+0000) Subject: Put back the extern declaration for strdup(), between #ifndef MS_WINDOWS. X-Git-Tag: v1.5a4~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f14ccf6d1dc4e4f5142ef8d061f9080d17b16fe;p=python Put back the extern declaration for strdup(), between #ifndef MS_WINDOWS. This should make everybody happy, especially since we don't say what the argument type is (there is disagreement on that, too :-( ). --- diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c index 6c885dfbe5..75b929beb0 100644 --- a/Modules/parsermodule.c +++ b/Modules/parsermodule.c @@ -26,6 +26,9 @@ /* ISTERMINAL() / ISNONTERMINAL() */ #include "compile.h" /* PyNode_Compile() */ +#ifndef MS_WINDOWS +char *strdup(); +#endif /* String constants used to initialize module attributes. *