From: Jean-Baptiste Kempf Date: Thu, 9 Apr 2009 18:58:40 +0000 (+0200) Subject: Revert "win32: remove old attempts to define snprintf _snprintf" X-Git-Tag: 1.0.0-pre2~146 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=db01e438b2125e1a221535adc07eda1ae65b0769;p=vlc Revert "win32: remove old attempts to define snprintf _snprintf" This reverts commit 3bceb9cfef124ace40526336905a2a0656bb5630. --- 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