mirror of
				https://github.com/msgpack/msgpack-python.git
				synced 2025-11-04 11:30:57 +00:00 
			
		
		
		
	fix compilation errors
This commit is contained in:
		
							parent
							
								
									d4bb86c0c8
								
							
						
					
					
						commit
						3dbb2d1e7e
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -4,7 +4,7 @@
 | 
			
		|||
from cpython cimport *
 | 
			
		||||
cdef extern from "Python.h":
 | 
			
		||||
    ctypedef struct PyObject
 | 
			
		||||
    cdef int PyObject_AsReadBuffer(object o, const void* buff, Py_ssize_t* buf_len) except -1
 | 
			
		||||
    cdef int PyObject_AsReadBuffer(object o, const void** buff, Py_ssize_t* buf_len) except -1
 | 
			
		||||
 | 
			
		||||
from libc.stdlib cimport *
 | 
			
		||||
from libc.string cimport *
 | 
			
		||||
| 
						 | 
				
			
			@ -95,7 +95,7 @@ def unpackb(object packed, object object_hook=None, object list_hook=None,
 | 
			
		|||
    cdef char* cenc = NULL
 | 
			
		||||
    cdef char* cerr = NULL
 | 
			
		||||
 | 
			
		||||
    PyObject_AsReadBuffer(packed, <const void*>&buf, &buf_len)
 | 
			
		||||
    PyObject_AsReadBuffer(packed, <const void**>&buf, &buf_len)
 | 
			
		||||
 | 
			
		||||
    if encoding is not None:
 | 
			
		||||
        if isinstance(encoding, unicode):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue