]> git.sesse.net Git - vlc/blobdiff - include/vlc_common.h
Revert "win32: remove old attempts to define snprintf _snprintf"
[vlc] / include / vlc_common.h
index 77881158cfc4f34f64154d7a9f840960e0513ad6..e5fdd7f1d7ce7087858824197375a8db8e47b539 100644 (file)
@@ -783,6 +783,14 @@ VLC_EXPORT( char *, vlc_strcasestr, ( const char *s1, const char *s2 ) LIBVLC_US
 
 #   ifndef alloca
 #       define alloca _alloca
+#   endif
+
+    /* These two are not defined in mingw32 (bug?) */
+#   ifndef snprintf
+#       define snprintf _snprintf
+#   endif
+#   ifndef vsnprintf
+#       define vsnprintf _vsnprintf
 #   endif
 
 #   include <tchar.h>