]> git.sesse.net Git - vlc/commitdiff
Revert "win32: remove old attempts to define snprintf _snprintf"
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 9 Apr 2009 18:58:40 +0000 (20:58 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 9 Apr 2009 19:56:54 +0000 (21:56 +0200)
This reverts commit 3bceb9cfef124ace40526336905a2a0656bb5630.

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>