From 8126ba895ae98425aa5ba2b6953d65e9b5122396 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Thu, 4 Sep 2008 14:07:52 +0100 Subject: [PATCH] python 2.4 + gcc 4.2 fix --- pybindgen/cppclass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pybindgen/cppclass.py b/pybindgen/cppclass.py index ed653ce..db4fa35 100644 --- a/pybindgen/cppclass.py +++ b/pybindgen/cppclass.py @@ -1582,7 +1582,7 @@ static PyObject*\n%s(%s *self) except utils.SkipWrapper: pass else: - method_defs.append('{"__copy__", (PyCFunction) %s, METH_NOARGS, NULL},' % copy_wrapper_name) + method_defs.append('{(char *) "__copy__", (PyCFunction) %s, METH_NOARGS, NULL},' % copy_wrapper_name) ## generate the method table code_sink.writeln("static PyMethodDef %s_methods[] = {" % (self.pystruct,))