From 3f286a1033479a7cfe40bc0e81c662eb3cd1d0f3 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Tue, 18 Aug 2009 13:49:42 +0200 Subject: python: Disable the functions in apt_inst if built without COMPAT_0_7. Developers should use the class-based API instead. --- python/apt_instmodule.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'python/apt_instmodule.h') diff --git a/python/apt_instmodule.h b/python/apt_instmodule.h index 9f978e44..2b07261b 100644 --- a/python/apt_instmodule.h +++ b/python/apt_instmodule.h @@ -14,11 +14,12 @@ #include "generic.h" #include +#ifdef COMPAT_0_7 PyObject *debExtract(PyObject *Self,PyObject *Args); extern char *doc_debExtract; PyObject *tarExtract(PyObject *Self,PyObject *Args); extern char *doc_tarExtract; - +#endif extern PyTypeObject PyArMember_Type; extern PyTypeObject PyArArchive_Type; -- cgit v1.2.3