[Python-checkins] python/dist/src/Objects fileobject.c,2.164,2.165

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/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv22290/python/Objects

Modified Files:
	fileobject.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: fileobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/fileobject.c,v
retrieving revision 2.164
retrieving revision 2.165
diff -C2 -d -r2.164 -r2.165
*** fileobject.c	30 Jun 2002 15:26:09 -0000	2.164
--- fileobject.c	14 Jul 2002 22:14:19 -0000	2.165
***************
*** 13,17 ****
  /* can simulate truncate with Win32 API functions; see file_truncate */
  #define HAVE_FTRUNCATE
! #define WINDOWS_LEAN_AND_MEAN
  #include <windows.h>
  #endif
--- 13,17 ----
  /* can simulate truncate with Win32 API functions; see file_truncate */
  #define HAVE_FTRUNCATE
! #define WIN32_LEAN_AND_MEAN
  #include <windows.h>
  #endif