From 290fdc52a30164a46f349dd6b7d2a94b45bdc15b Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 30 Jul 2012 20:12:24 +0200 Subject: fixed libxml2 API usage by appropriately using 'const' and 'xmlChar*' --- src/lxml/python.pxd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lxml/python.pxd') diff --git a/src/lxml/python.pxd b/src/lxml/python.pxd index c63de17e..11cd5485 100644 --- a/src/lxml/python.pxd +++ b/src/lxml/python.pxd @@ -1,4 +1,5 @@ from libc cimport stdio +from libc.string cimport const_char cimport cython cdef extern from "Python.h": @@ -126,7 +127,7 @@ cdef extern from "pythread.h": cdef extern from "etree_defs.h": # redefines some functions as macros cdef bint _isString(object obj) - cdef char* _fqtypename(object t) + cdef const_char* _fqtypename(object t) cdef object PY_NEW(object t) cdef bint IS_PYTHON3 cdef bint IS_PYPY -- cgit v1.2.1