Edgewall Software

Opened 16 years ago

Closed 16 years ago

#214 closed defect (fixed)

trunk head genshi/_speedups.c does not compile on python 2.4

Reported by: dgc@… Owned by: cmlenz
Priority: major Milestone: 0.5
Component: General Version: 0.4.4
Keywords: Cc:

Description

Py_ssize_t seems to be new. Patch attached. I don't know if this is correct version-wise -- no idea when Py_ssize_t was introduced -- but this fixes for my system.

Attachments (1)

genshi.diff (449 bytes) - added by dgc@… 16 years ago.
Patch to resolve bug

Download all attachments as: .zip

Change History (3)

Changed 16 years ago by dgc@…

Patch to resolve bug

comment:1 Changed 16 years ago by aronacher

The better solution would be adding this:

#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
typedef int Py_ssize_t;
#define PY_SSIZE_T_MAX INT_MAX
#define PY_SSIZE_T_MIN INT_MIN
#endif

comment:2 Changed 16 years ago by jruigrok

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r847. Thanks.

Note: See TracTickets for help on using tickets.