src/io/source_wavread.c: hack around unknown conversion type char z on mingw
authorPaul Brossier <piem@piem.org>
Wed, 12 Mar 2014 04:09:35 +0000 (01:09 -0300)
committerPaul Brossier <piem@piem.org>
Wed, 12 Mar 2014 04:09:35 +0000 (01:09 -0300)
src/io/source_wavread.c

index 02fd2c0..c891908 100644 (file)
@@ -217,7 +217,11 @@ aubio_source_wavread_t * new_aubio_source_wavread(char_t * path, uint_t samplera
 
   // 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;
   }