Commits

Lenard Lindstrom committed 33e0013

Added conditional Py_ssize_t declaration for Python 2.4

  • Participants
  • Parent commits 50dbef7
  • Branches physics

Comments (0)

Files changed (1)

include/pgDeclare.h

  * Internally used declarations.
  */
 
+#if PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION <= 4
+typedef int Py_ssize_t;
+#endif
+
 #ifdef PHYSICS_INTERNAL
 
 extern PyTypeObject PyBody_Type;