[Python-checkins] python/dist/src/PC w9xpopen.c,1.4,1.5

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Sun, 14 Jul 2002 15:14:21 -0700


Update of /cvsroot/python/python/dist/src/PC
In directory usw-pr-cvs1:/tmp/cvs-serv22290/python/PC

Modified Files:
	w9xpopen.c 
Log Message:
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.


Index: w9xpopen.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/PC/w9xpopen.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** w9xpopen.c	15 Apr 2002 22:57:46 -0000	1.4
--- w9xpopen.c	14 Jul 2002 22:14:19 -0000	1.5
***************
*** 15,21 ****
   */    
  
! #define WINDOWS_LEAN_AND_MEAN
  #include <windows.h>
  #include <stdio.h>
  
  const char *usage =
--- 15,22 ----
   */    
  
! #define WIN32_LEAN_AND_MEAN
  #include <windows.h>
  #include <stdio.h>
+ #include <stdlib.h>  /* for malloc and its friends */
  
  const char *usage =