Line 0
Link Here
|
|
|
1 |
--- src/libs/xpcom18a4/python/src/PyXPCOM.h.orig 2016-09-12 16:20:10 UTC |
2 |
+++ src/libs/xpcom18a4/python/src/PyXPCOM.h |
3 |
@@ -286,7 +286,11 @@ public: |
4 |
static int Py_setattr(PyObject *op, char *name, PyObject *v); |
5 |
static int Py_cmp(PyObject *ob1, PyObject *ob2); |
6 |
static PyObject *Py_richcmp(PyObject *ob1, PyObject *ob2, int op); |
7 |
+#if PY_VERSION_HEX < 0x03020000 |
8 |
static long Py_hash(PyObject *self); |
9 |
+#else |
10 |
+ static Py_hash_t Py_hash(PyObject *self); |
11 |
+#endif |
12 |
}; |
13 |
|
14 |
////////////////////////////////////////////////////////////////////////// |
15 |
@@ -442,7 +446,11 @@ public: |
16 |
#endif |
17 |
static PyObject *PyTypeMethod_richcompare(PyObject *self, PyObject *ob, int op); |
18 |
static PyObject *PyTypeMethod_repr(PyObject *self); |
19 |
+#if PY_VERSION_HEX < 0x03020000 |
20 |
static long PyTypeMethod_hash(PyObject *self); |
21 |
+#else |
22 |
+ static Py_hash_t PyTypeMethod_hash(PyObject *self); |
23 |
+#endif |
24 |
static PyObject *PyTypeMethod_str(PyObject *self); |
25 |
static void PyTypeMethod_dealloc(PyObject *self); |
26 |
static NS_EXPORT_STATIC_MEMBER_(PyTypeObject) type; |