shithub: sox

Download patch

ref: dc233c9e4ac8a30c3f4a4c41060b876ae70dcbdf
parent: 5ee564e92357d013efa9be72490687eca80fc078
author: cbagwell <cbagwell>
date: Mon Dec 21 19:39:53 EST 2009

Enable cygwin TEMP work around on mingw as well.

--- a/src/sox.c
+++ b/src/sox.c
@@ -2670,7 +2670,7 @@
   return c1 && c2 && !strcasecmp(c1, c2);
 }
 
-#ifdef __CYGWIN__
+#if defined(__CYGWIN__) || defined(__MINGW32__)
 static char * check_dir(char * name)
 {
   struct stat st;
@@ -2710,7 +2710,8 @@
 
   parse_options_and_filenames(argc, argv);
 
-#ifdef __CYGWIN__  /* Workarounds for a couple of cygwin problems: */
+#if defined(__CYGWIN__) || defined(__MINGW32__) 
+  /* Workarounds for a couple of cygwin/mingw problems: */
   /* Allow command-line --temp "" to specify default behaviour: */
   if (sox_globals.tmp_path && !*sox_globals.tmp_path) {
     free(sox_globals.tmp_path);