summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/talloc/pytalloc.h4
1 files changed, 2 insertions, 2 deletions
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 <Python.h>
+#include <talloc.h>
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