--- paint.h.orig	Thu May 10 10:12:07 2001
+++ paint.h	Mon Jul  9 00:01:22 2001
@@ -39,6 +39,9 @@
 #include <libart_lgpl/art_svp_vpath_stroke.h>
 
 #include "Python.h"
+#define Py_Malloc(n)		PyMem_Malloc(n)
+#define Py_Realloc(p, n)	PyMem_Realloc((p), (n))
+#define Py_Free(p)		PyMem_Free(p)
 
 typedef struct {
     PyObject_HEAD
