Commit 2df847a8 authored by Axel Roebel's avatar Axel Roebel

Implemented sveinse's fix

- moved all windows specific includes in front of pysndfile.hh
parent 62ebb996
......@@ -71,6 +71,15 @@ IF UNAME_SYSNAME == "Windows":
"""
#define ENABLE_SNDFILE_WINDOWS_PROTOTYPES 1
"""
from libc.stddef cimport wchar_t
cdef extern from "Windows.h":
ctypedef const wchar_t *LPCWSTR
cdef extern from "Python.h":
wchar_t* PyUnicode_AsWideCharString(object, Py_ssize_t *)
void PyMem_Free(void *p)
cdef extern from "pysndfile.hh":
ctypedef struct SF_FORMAT_INFO:
......
from libc.stddef cimport wchar_t
cdef extern from "Windows.h":
ctypedef const wchar_t *LPCWSTR
cdef extern from "Python.h":
wchar_t* PyUnicode_AsWideCharString(object, Py_ssize_t *)
void PyMem_Free(void *p)
cdef extern from "pysndfile.hh":
cdef cppclass SndfileHandle :
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment