From a57b1aa0f1df4fb5ec5a5b38f0505302ae20f001 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 19 Dec 2008 01:22:07 +0000 Subject: Initial work using manual Python bindings for LDB, rather than SWIG-generated ones. --- lib/talloc/pytalloc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/talloc') diff --git a/lib/talloc/pytalloc.h b/lib/talloc/pytalloc.h index aad5840a67..bff6f31d27 100644 --- a/lib/talloc/pytalloc.h +++ b/lib/talloc/pytalloc.h @@ -21,6 +21,7 @@ #define _PY_TALLOC_H_ #include +#include typedef struct { PyObject_HEAD @@ -36,8 +37,7 @@ void py_talloc_dealloc(PyObject* self); /* FIXME: Call PyErr_SetString(PyExc_TypeError, "expected " __STR(type) ") * when talloc_get_type() returns NULL. */ -#define py_talloc_get_type(py_obj, type) \ - talloc_get_type(py_talloc_get_ptr(py_obj), type) +#define py_talloc_get_type(py_obj, type) (talloc_get_type(py_talloc_get_ptr(py_obj), type)) #define py_talloc_get_ptr(py_obj) ((py_talloc_Object *)py_obj)->ptr #define py_talloc_get_mem_ctx(py_obj) ((py_talloc_Object *)py_obj)->talloc_ctx -- cgit