projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87636d0
)
src/io/source_wavread.c: hack around unknown conversion type char z on mingw
author
Paul Brossier
<piem@piem.org>
Wed, 12 Mar 2014 04:09:35 +0000
(
01:09
-0300)
committer
Paul Brossier
<piem@piem.org>
Wed, 12 Mar 2014 04:09:35 +0000
(
01:09
-0300)
src/io/source_wavread.c
patch
|
blob
|
history
diff --git
a/src/io/source_wavread.c
b/src/io/source_wavread.c
index
02fd2c0
..
c891908
100644
(file)
--- 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;
}