Skip to content

Commit

Permalink
Merge pull request #83 from NextThought/issue82
Browse files Browse the repository at this point in the history
Fix #82 by doing what the ctypes module does.
  • Loading branch information
snaury committed May 14, 2015
2 parents 80b5b33 + 41d0974 commit 1389eec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions greenlet.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ The running greenlet's stack_start is undefined but not NULL.
#endif
#endif

#if PY_VERSION_HEX < 0x02060000
#define PyLong_FromSsize_t PyInt_FromLong
#endif

#if PY_VERSION_HEX < 0x02050000
typedef int Py_ssize_t;
#endif
Expand Down

0 comments on commit 1389eec

Please sign in to comment.