Changeset 2591:963c07313a85 in livinglogic.python.xist

Show
Ignore:
Timestamp:
09/22/06 08:58:53 (13 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Make helpers.c compilable for Python 2.4 again.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/ll/xist/helpers.c

    r2590 r2591  
    1111#include "Python.h" 
    1212 
     13 
     14/* Backwards compatibility defines */ 
     15#if PY_VERSION_HEX < 0x02050000 
     16typedef int Py_ssize_t; 
     17#define PY_SSIZE_T_MAX INT_MAX 
     18#define PY_SSIZE_T_MIN INT_MIN 
     19#endif 
    1320 
    1421/* define unicode version of escape */