From 0548620d0cf0ebc36b1a39eba39bdc2a4aa0f864 Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Wed, 2 Dec 2020 10:34:09 +0100 Subject: [PATCH] Define sf_wchar_open() on all platforms See https://github.com/conda-forge/pysoundfile-feedstock/pull/12. --- soundfile_build.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/soundfile_build.py b/soundfile_build.py index 774fd9b..d7749f6 100644 --- a/soundfile_build.py +++ b/soundfile_build.py @@ -125,13 +125,10 @@ const char* name ; const char* extension ; } SF_FORMAT_INFO ; -""") -platform = os.environ.get('PYSOUNDFILE_PLATFORM', sys.platform) -if platform == 'win32': - ffibuilder.cdef(""" - SNDFILE* sf_wchar_open (const wchar_t *wpath, int mode, SF_INFO *sfinfo) ; - """) +/* This is only available on Windows: */ +SNDFILE* sf_wchar_open (const wchar_t *wpath, int mode, SF_INFO *sfinfo) ; +""") if __name__ == "__main__": ffibuilder.compile(verbose=True)