Mercurial > mplayer.hg
changeset 34179:cdbfbee5c8a9
libdvdcss: Drop #define of snprintf() to _snprintf() if the former is undefined.
This workaround was added for MinGW originally, but nowadays MinGW supports
snprintf() directly so it has become unnecessary.
Furthermore this can play havoc with Cygwin which does not have a _snprintf()
declaration and gives implicit function declaration warnings. Depending on
compiler flags, this can be a fatal error.
This was committed to the libdvdcss Subversion repository as revision 243.
author | diego |
---|---|
date | Wed, 26 Oct 2011 17:02:09 +0000 |
parents | 3c0cf739f1e1 |
children | 61f7925ff295 |
files | libdvdcss/common.h |
diffstat | 1 files changed, 0 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libdvdcss/common.h Wed Oct 26 17:02:07 2011 +0000 +++ b/libdvdcss/common.h Wed Oct 26 17:02:09 2011 +0000 @@ -76,10 +76,6 @@ # define stat _stati64 # endif -# ifndef snprintf -# define snprintf _snprintf /* snprintf not defined in mingw32 (bug?) */ -# endif - #endif #endif /* DVDCSS_COMMON_H */