diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-10-26 22:51:27 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-10-26 22:51:27 -0400 |
commit | 6baa4b417be73269ba6d596fd793ea39e0a4db18 (patch) | |
tree | c29a7e574366b26b4957eb55b9295d1496a1e910 /systemd/pyutil.h | |
parent | 035700c2b585af0821e1ef9e3c389586c73ade17 (diff) | |
download | python-systemd-6baa4b417be73269ba6d596fd793ea39e0a4db18.tar.gz |
daemon: wrap sd_pid_notify[_with_pids]
Closes #8.
Diffstat (limited to 'systemd/pyutil.h')
-rw-r--r-- | systemd/pyutil.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/systemd/pyutil.h b/systemd/pyutil.h index c67f635..f840e87 100644 --- a/systemd/pyutil.h +++ b/systemd/pyutil.h @@ -33,7 +33,7 @@ int set_error(int r, const char* path, const char* invalid_message); int Unicode_FSConverter(PyObject* obj, void *_result); #endif -#define _cleanup_Py_DECREF_ __attribute__((cleanup(cleanup_Py_DECREFp))) +#define _cleanup_Py_DECREF_ _cleanup_(cleanup_Py_DECREFp) #if PY_MAJOR_VERSION >=3 # define unicode_FromStringAndSize PyUnicode_FromStringAndSize |