From 46148d38d62c4732b7f6f7fe574e41744630cabb Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 12 Mar 2014 01:09:35 -0300 Subject: [PATCH] src/io/source_wavread.c: hack around unknown conversion type char z on mingw --- src/io/source_wavread.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.11.0