From 03e9d9d6c1d8768a6f70217bababd82de29bc770 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Mon, 9 Feb 2015 19:33:44 +0100 Subject: UTIL: Remove compatibility macro PyModule_AddIntMacro The macro PyModule_AddIntMacro is defined in python >= 2.6 Reviewed-by: Stephen Gallagher --- src/util/sss_python.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/util/sss_python.h') diff --git a/src/util/sss_python.h b/src/util/sss_python.h index 56c25ebb7..5521aa5cf 100644 --- a/src/util/sss_python.h +++ b/src/util/sss_python.h @@ -32,11 +32,6 @@ PyObject *sss_python_unicode_from_string(const char *u); PyObject * sss_exception_with_doc(char *name, char *doc, PyObject *base, PyObject *dict); -/* PyModule_AddIntMacro() compatibility */ -#if !HAVE_DECL_PYMODULE_ADDINTMACRO -#define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, sss_py_const_p(char, #c), c) -#endif - /* Convenience macros */ #define TYPE_READY(module, type, name) do { \ if (PyType_Ready(&type) < 0) \ -- cgit