mirror of
https://github.com/samba-team/samba.git
synced 2025-08-05 12:22:11 +03:00
s3-passdb: Fix python < 2.6 build errors in passdb python wrapper
Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Sun Aug 14 03:59:48 CEST 2011 on sn-devel-104
This commit is contained in:
@ -29,6 +29,10 @@
|
|||||||
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
|
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef Py_TYPE /* Py_TYPE is only available on Python > 2.6 */
|
||||||
|
#define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef PY_CHECK_TYPE
|
#ifndef PY_CHECK_TYPE
|
||||||
#define PY_CHECK_TYPE(type, var, fail) \
|
#define PY_CHECK_TYPE(type, var, fail) \
|
||||||
if (!PyObject_TypeCheck(var, type)) {\
|
if (!PyObject_TypeCheck(var, type)) {\
|
||||||
|
Reference in New Issue
Block a user