[Python-checkins] r62289 - python/trunk/Modules/_ctypes/ctypes.h
thomas.heller
python-checkins at python.org
Fri Apr 11 15:05:38 CEST 2008
Author: thomas.heller
Date: Fri Apr 11 15:05:38 2008
New Revision: 62289
Modified:
python/trunk/Modules/_ctypes/ctypes.h
Log:
Move backwards compatibility macro to the correct place;
PyIndex_Check() was introduced in Python 2.5.
Modified: python/trunk/Modules/_ctypes/ctypes.h
==============================================================================
--- python/trunk/Modules/_ctypes/ctypes.h (original)
+++ python/trunk/Modules/_ctypes/ctypes.h Fri Apr 11 15:05:38 2008
@@ -10,6 +10,7 @@
typedef int Py_ssize_t;
#define PyInt_FromSsize_t PyInt_FromLong
#define PyNumber_AsSsize_t(ob, exc) PyInt_AsLong(ob)
+#define PyIndex_Check(ob) PyInt_Check(ob)
#endif
#if (PY_VERSION_HEX < 0x02060000)
@@ -17,7 +18,6 @@
#define PyVarObject_HEAD_INIT(type, size) \
PyObject_HEAD_INIT(type) size,
#define PyImport_ImportModuleNoBlock PyImport_ImportModule
-#define PyIndex_Check(ob) PyInt_Check(ob)
#endif
More information about the Python-checkins
mailing list