[vlc-devel] commit: Revert "win32: remove old attempts to define snprintf _snprintf" ( Jean-Baptiste Kempf )
git version control
git at videolan.org
Thu Apr 9 22:34:57 CEST 2009
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Apr 9 20:58:40 2009 +0200| [db01e438b2125e1a221535adc07eda1ae65b0769] | committer: Jean-Baptiste Kempf
Revert "win32: remove old attempts to define snprintf _snprintf"
This reverts commit 3bceb9cfef124ace40526336905a2a0656bb5630.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=db01e438b2125e1a221535adc07eda1ae65b0769
---
include/vlc_common.h | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/include/vlc_common.h b/include/vlc_common.h
index 7788115..e5fdd7f 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -785,6 +785,14 @@ VLC_EXPORT( char *, vlc_strcasestr, ( const char *s1, const char *s2 ) LIBVLC_US
# 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>
#endif
More information about the vlc-devel
mailing list