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)