##// END OF EJS Templates
util.h: kill no longer needed definitions for Python < 2.5...
Adrian Buehlmann -
r25026:80d28a88 default
parent child Browse files
Show More
@@ -101,22 +101,6 b''
101
101
102 #endif /* PY_VERSION_HEX */
102 #endif /* PY_VERSION_HEX */
103
103
104 #if (PY_VERSION_HEX < 0x02050000)
105 /* Definitions to get compatibility with python 2.4 and earlier which
106 does not have Py_ssize_t. See also PEP 353.
107 Note: msvc (8 or earlier) does not have ssize_t, so we use Py_ssize_t.
108 */
109 typedef int Py_ssize_t;
110 typedef Py_ssize_t (*lenfunc)(PyObject *);
111 typedef PyObject *(*ssizeargfunc)(PyObject *, Py_ssize_t);
112 #define PyInt_FromSsize_t PyInt_FromLong
113
114 #if !defined(PY_SSIZE_T_MIN)
115 #define PY_SSIZE_T_MAX INT_MAX
116 #define PY_SSIZE_T_MIN INT_MIN
117 #endif
118 #endif
119
120 #ifdef _WIN32
104 #ifdef _WIN32
121 #ifdef _MSC_VER
105 #ifdef _MSC_VER
122 /* msvc 6.0 has problems */
106 /* msvc 6.0 has problems */
General Comments 0
You need to be logged in to leave comments. Login now