[vlc-devel] [PATCH] Win32: disable sprintf wrapper for %z

Pierre Ynard linkfanel at yahoo.fr
Wed Mar 11 12:13:18 CET 2009


The macros are indeed a little bit too intrusive, and break calls to
QString::sprintf


diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h
index e6906e9..15172b2 100644
--- a/include/vlc_fixups.h
+++ b/include/vlc_fixups.h
@@ -152,6 +152,7 @@ static inline int vlc_fprintf (FILE *stream, const char *format, ...)
 }
 # define fprintf vlc_fprintf
 
+#if 0
 static inline int vlc_sprintf (char *str, const char *format, ...)
 {
     va_list ap;
@@ -162,6 +163,7 @@ static inline int vlc_sprintf (char *str, const char *format, ...)
     return ret;
 }
 # define sprintf vlc_sprintf
+#endif
 
 static inline int vlc_snprintf (char *str, size_t size, const char *format, ...)
 {


Regards,

-- 
Pierre Ynard
"Une âme dans un corps, c'est comme un dessin sur une feuille de papier."



More information about the vlc-devel mailing list