From db01e438b2125e1a221535adc07eda1ae65b0769 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Thu, 9 Apr 2009 20:58:40 +0200 Subject: [PATCH] Revert "win32: remove old attempts to define snprintf _snprintf" This reverts commit 3bceb9cfef124ace40526336905a2a0656bb5630. --- include/vlc_common.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/vlc_common.h b/include/vlc_common.h index 77881158cf..e5fdd7f1d7 100644 --- a/include/vlc_common.h +++ b/include/vlc_common.h @@ -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 -- 2.39.2