mirror of https://github.com/python/cpython
/F revealed that ShellExecute() only requires shellapi.h, not the
full-blown windows.h, so changed accordingly.
This commit is contained in:
parent
54ed2d32f9
commit
ee66d0c3d5
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue