summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-07-15 16:10:55 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-07-15 16:10:55 (GMT)
commitee66d0c3d5e2bc63a81ec5893c81671a1d8e9635 (patch)
tree12a7646f854bec026dd0df6e83a7d90aaae19d26
parent54ed2d32f9e53a3d90b282472070e6151a10adaf (diff)
downloadcpython-ee66d0c3d5e2bc63a81ec5893c81671a1d8e9635.zip
cpython-ee66d0c3d5e2bc63a81ec5893c81671a1d8e9635.tar.gz
cpython-ee66d0c3d5e2bc63a81ec5893c81671a1d8e9635.tar.bz2
/F revealed that ShellExecute() only requires shellapi.h, not the
full-blown windows.h, so changed accordingly.
-rw-r--r--Modules/posixmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 8a419c3..47bea6f 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -217,8 +217,9 @@ extern int lstat(const char *, struct stat *);
#include <io.h>
#include <process.h>
#include "osdefs.h"
-/* We don't want WIN32_LEAN_AND_MEAN here -- we need ShellExecute(). */
+#define WIN32_LEAN_AND_MEAN
#include <windows.h>
+#include <shellapi.h> /* for ShellExecute() */
#define popen _popen
#define pclose _pclose
#endif /* _MSC_VER */