From 118a6fb322018e58d240b1ff6f4d98cb26baec66 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 8 Dec 2013 12:25:50 +0100 Subject: [PATCH] fix Py2.4 C compilation problem --- Cython/Utility/CommonTypes.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Cython/Utility/CommonTypes.c b/Cython/Utility/CommonTypes.c index ea24f6a..c2403cb 100644 --- a/Cython/Utility/CommonTypes.c +++ b/Cython/Utility/CommonTypes.c @@ -7,9 +7,8 @@ static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type); static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type) { PyObject* fake_module; PyTypeObject* cached_type = NULL; - const char* cython_module = "_cython_" CYTHON_ABI; - fake_module = PyImport_AddModule(cython_module); + fake_module = PyImport_AddModule((char*) "_cython_" CYTHON_ABI); if (!fake_module) return NULL; Py_INCREF(fake_module); -- 2.7.4