summaryrefslogtreecommitdiffstats
path: root/src/util/sss_python.h
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2015-02-09 19:16:30 +0100
committerJakub Hrozek <jhrozek@redhat.com>2015-02-25 08:38:18 +0100
commitd6c3de740c7bed8b007805d6a313220d8d974ee5 (patch)
tree69dcdb932ba9db43eb73cb4536111fc7e5afcfd8 /src/util/sss_python.h
parent36458f3054020f046c4a9b81d0112c7ca2e1be1c (diff)
downloadsssd-d6c3de740c7bed8b007805d6a313220d8d974ee5.tar.gz
sssd-d6c3de740c7bed8b007805d6a313220d8d974ee5.tar.xz
sssd-d6c3de740c7bed8b007805d6a313220d8d974ee5.zip
BUILD: Remove detection of type Py_ssize_t
The type Py_ssize_t is defined in python >= 2.6 Reviewed-by: Stephen Gallagher <sgallagh@redhat.com>
Diffstat (limited to 'src/util/sss_python.h')
-rw-r--r--src/util/sss_python.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/util/sss_python.h b/src/util/sss_python.h
index 828bd22ec..cf8c84848 100644
--- a/src/util/sss_python.h
+++ b/src/util/sss_python.h
@@ -25,20 +25,6 @@
#define PYNUMBER_ASLONG(what) PyInt_AsLong(what)
#endif
-/* Py_ssize_t compatibility for python < 2.5 as per
- * http://www.python.org/dev/peps/pep-0353/ */
-#ifndef HAVE_PY_SSIZE_T
-typedef int Py_ssize_t;
-#endif
-
-#ifndef PY_SSIZE_T_MAX
-#define PY_SSIZE_T_MAX INT_MAX
-#endif
-
-#ifndef PY_SSIZE_T_MIN
-#define PY_SSIZE_T_MIN INT_MIN
-#endif
-
/* Wrappers providing the subset of C API for python's set objects we use */
PyObject *sss_python_set_new(void);
int sss_python_set_add(PyObject *set, PyObject *key);