From: Paul Brossier Date: Wed, 12 Mar 2014 04:09:35 +0000 (-0300) Subject: src/io/source_wavread.c: hack around unknown conversion type char z on mingw X-Git-Tag: 0.4.1~4 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=46148d38d62c4732b7f6f7fe574e41744630cabb;p=aubio.git src/io/source_wavread.c: hack around unknown conversion type char z on mingw --- diff --git a/src/io/source_wavread.c b/src/io/source_wavread.c index 02fd2c04..c8919080 100644 --- a/src/io/source_wavread.c +++ b/src/io/source_wavread.c @@ -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; }