summaryrefslogtreecommitdiff
path: root/PC/w9xpopen.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-07-14 22:14:19 +0000
committerTim Peters <tim.peters@gmail.com>2002-07-14 22:14:19 +0000
commit0d3ee5bfa9951542e18f215283831d9f93059e29 (patch)
tree11f78cd6009f725825f46881e86f231a2c9f8634 /PC/w9xpopen.c
parentfb75a3f06771342ca2b2ec1af9adac1de52af358 (diff)
downloadcpython-0d3ee5bfa9951542e18f215283831d9f93059e29.tar.gz
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.
Diffstat (limited to 'PC/w9xpopen.c')
-rw-r--r--PC/w9xpopen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/PC/w9xpopen.c b/PC/w9xpopen.c
index 8c063ac0c6..95fc277c88 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 <windows.h>
#include <stdio.h>
+#include <stdlib.h> /* for malloc and its friends */
const char *usage =
"This program is used by Python's os.popen function\n"