shithub: aubio

Download patch

ref: 46148d38d62c4732b7f6f7fe574e41744630cabb
parent: 87636d0635b083ee032b5885ef932af3dd3b0309
author: Paul Brossier <piem@piem.org>
date: Tue Mar 11 21:09:35 EDT 2014

src/io/source_wavread.c: hack around unknown conversion type char z on mingw

--- a/src/io/source_wavread.c
+++ b/src/io/source_wavread.c
@@ -217,7 +217,11 @@
 
   // check the total number of bytes read is correct
   if ( bytes_read != bytes_expected ) {
+#ifndef HAVE_WIN_HACKS
     AUBIO_ERR("source_wavread: short read (%zd instead of %zd) in %s\n",
+#else // mingw does not know about %zd...
+    AUBIO_ERR("source_wavread: short read (%d instead of %d) in %s\n",
+#endif
         bytes_read, bytes_expected, s->path);
     goto beach;
   }