[vlc-devel] [PATCH 1/1] Fix mingw failing to handle %zu

Jean-Baptiste Kempf jb at videolan.org
Fri Nov 14 08:39:13 CET 2008


On Fri, Nov 14, 2008 at 08:03:07AM +0100, Jean-Baptiste Kempf wrote :
> On Fri, Nov 14, 2008 at 08:00:53AM +0100, Geoffroy Couprie wrote :
> > I didn't see anything about msvcrt's vsnprintf recognizing %z in msdn,
> > so I don't think it's mingw's fault here. Removing only the %zu is
> > apparently not an option, because %lu breaks something on x64. From
> > what was said on IRC, the saner way was rewriting the *printf
> > functions in VLC.
> Have you tried to use %Iu ISO %zu ?
Ref:
http://archives.devshed.com/forums/c-c-134/64-bit-portability-size-t-and-printf-format-strings-1882342.html

Best Regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/



More information about the vlc-devel mailing list