Update of /cvsroot/pywin32/pywin32/isapi/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv4168/isapi/src
Modified Files:
StdAfx.h
Log Message:
define Py_ssize_t on py2.3
Index: StdAfx.h
===================================================================
RCS file: /cvsroot/pywin32/pywin32/isapi/src/StdAfx.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** StdAfx.h 3 Feb 2009 00:51:42 -0000 1.3
--- StdAfx.h 3 Feb 2009 10:15:24 -0000 1.4
***************
*** 50,53 ****
--- 50,59 ----
#undef WRITE_RESTRICTED
+ // See PEP-353 - this is the "official" test...
+ #if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
+ // 2.3 and before have no Py_ssize_t
+ typedef int Py_ssize_t;
+ #endif
+
// ***** py3k support *****
// Note that when built for py3k, 'UNICODE' is defined, which conveniently
|