mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 10:48:51 +00:00
Thrift: Fix fastbinary.c for Python 2.4.
Summary: The recently committed fastbinary.c doesn't compile with Python 2.4. This version does. Blame Rev: 56816 Reviewed By: mcslee Test Plan: make install on devrs004 Revert Plan: Do 56816 also. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665225 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
382fc3043c
commit
5ec8e26d25
@ -73,6 +73,11 @@ typedef enum TType {
|
||||
#define INT_CONV_ERROR_OCCURRED(v) ( ((v) == -1) && PyErr_Occurred() )
|
||||
#define CHECK_RANGE(v, min, max) ( ((v) <= (max)) && ((v) >= (min)) )
|
||||
|
||||
// Py_ssize_t was not defined before Python 2.5
|
||||
#if (PY_VERSION_HEX < 0x02050000)
|
||||
typedef int Py_ssize_t;
|
||||
#endif
|
||||
|
||||
/**
|
||||
* A cache of the spec_args for a set or list,
|
||||
* so we don't have to keep calling PyTuple_GET_ITEM.
|
||||
|
Loading…
Reference in New Issue
Block a user