The printf functions on Windows don't support the z length modifier,
which can shift field arguments, and causes an unconditional crash in
modules.c on start-up. For now, strip it on Windows and have vlc work
again, until a better solution is found and applied.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
/* Sort candidates by descending score */
qsort (p_list, count, sizeof (p_list[0]), modulecmp);
+#ifdef WIN32
+ /* FIXME: Remove this hack after finding a general solution for %z's */
+ msg_Dbg( p_this, "looking for %s module: %u candidate%s", psz_capability,
+ count, count == 1 ? "" : "s" );
+#else
msg_Dbg( p_this, "looking for %s module: %zu candidate%s", psz_capability,
count, count == 1 ? "" : "s" );
+#endif
/* Parse the linked list and use the first successful module */
p_module = NULL;