summaryrefslogtreecommitdiff
path: root/python/progress.h
diff options
context:
space:
mode:
Diffstat (limited to 'python/progress.h')
-rw-r--r--python/progress.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/python/progress.h b/python/progress.h
index 50fd7f20..e21a5c5a 100644
--- a/python/progress.h
+++ b/python/progress.h
@@ -15,11 +15,16 @@
#include <apt-pkg/cdrom.h>
#include <Python.h>
+
typedef struct {
PyObject_HEAD
PyObject *op;
PyObject *subop;
+#ifdef T_BOOL
+ char major_change;
+#else
int major_change;
+#endif
float percent;
} PyOpProgressObject;