shithub: sox

Download patch

ref: 943cae72e49aca14d3e0ed7f9c86d42afe9c5916
parent: 3e4bb567ba239293df67d1995aaef21c38d3272c
author: Chris Bagwell <chris@cnpbagwell.com>
date: Tue Jul 10 04:13:08 EDT 2012

Updated check for MINGW compile

Needed to work on both mingw32 and mingw64.

--- a/src/formats.c
+++ b/src/formats.c
@@ -411,7 +411,7 @@
   fp->_r += PIPE_AUTO_DETECT_SIZE;
 #elif defined __GLIBC__
   fp->_IO_read_ptr = fp->_IO_read_base;
-#elif defined _MSC_VER || defined __MINGW_H || defined _ISO_STDIO_ISO_H
+#elif defined _MSC_VER || defined _WIN32 || defined _WIN64 || defined _ISO_STDIO_ISO_H
   fp->_ptr = fp->_base;
 #else
   /* To fix this #error, either simply remove the #error line and live without