From 7a1f91709bf825964e47d751ca84e90e7502a936 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Sun, 14 Jul 2002 22:14:19 +0000 Subject: WINDOWS_LEAN_AND_MEAN: There is no such symbol, although a very few MSDN sample programs use it, apparently in error. The correct name is WIN32_LEAN_AND_MEAN. After switching to the correct name, in two cases more was needed because the code actually relied on things that disappear when WIN32_LEAN_AND_MEAN is defined. --- Modules/_localemodule.c | 2 +- Modules/posixmodule.c | 2 +- Objects/fileobject.c | 2 +- PC/w9xpopen.c | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c index 80c2767..5ed3eaf 100644 --- a/Modules/_localemodule.c +++ b/Modules/_localemodule.c @@ -26,7 +26,7 @@ This software comes with no warranty. Use at your own risk. #endif #if defined(MS_WINDOWS) -#define WINDOWS_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN #include #endif diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 163263f..4d9c93d 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -217,7 +217,7 @@ extern int lstat(const char *, struct stat *); #include #include #include "osdefs.h" -#define WINDOWS_LEAN_AND_MEAN +/* We don't want WIN32_LEAN_AND_MEAN here -- we need ShellExecute(). */ #include #define popen _popen #define pclose _pclose diff --git a/Objects/fileobject.c b/Objects/fileobject.c index a42502b..0b9bab8 100644 --- a/Objects/fileobject.c +++ b/Objects/fileobject.c @@ -12,7 +12,7 @@ #define fileno _fileno /* can simulate truncate with Win32 API functions; see file_truncate */ #define HAVE_FTRUNCATE -#define WINDOWS_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN #include #endif diff --git a/PC/w9xpopen.c b/PC/w9xpopen.c index 8c063ac..95fc277 100644 --- a/PC/w9xpopen.c +++ b/PC/w9xpopen.c @@ -14,9 +14,10 @@ * AKA solution to the problem described in KB: Q150956. */ -#define WINDOWS_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN #include #include +#include /* for malloc and its friends */ const char *usage = "This program is used by Python's os.popen function\n" -- cgit v0.12