From: Tim Peters Date: Mon, 15 Jul 2002 16:10:55 +0000 (+0000) Subject: /F revealed that ShellExecute() only requires shellapi.h, not the X-Git-Tag: v2.3c1~5005 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ee66d0c3d5e2bc63a81ec5893c81671a1d8e9635;p=thirdparty%2FPython%2Fcpython.git /F revealed that ShellExecute() only requires shellapi.h, not the full-blown windows.h, so changed accordingly. --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 8a419c3ad809..47bea6f9f92d 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -217,8 +217,9 @@ extern int lstat(const char *, struct stat *); #include #include #include "osdefs.h" -/* We don't want WIN32_LEAN_AND_MEAN here -- we need ShellExecute(). */ +#define WIN32_LEAN_AND_MEAN #include +#include /* for ShellExecute() */ #define popen _popen #define pclose _pclose #endif /* _MSC_VER */