]> granicus.if.org Git - python/commitdiff
/F revealed that ShellExecute() only requires shellapi.h, not the
authorTim Peters <tim.peters@gmail.com>
Mon, 15 Jul 2002 16:10:55 +0000 (16:10 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 15 Jul 2002 16:10:55 +0000 (16:10 +0000)
full-blown windows.h, so changed accordingly.

Modules/posixmodule.c

index 8a419c3ad809545adb028f161d33420db5a4733a..47bea6f9f92d85ce37b9e5d3089194975ce4f220 100644 (file)
@@ -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 */