# HG changeset patch # User diego # Date 1319648529 0 # Node ID cdbfbee5c8a9d530e51a41a9735987368df0af2d # Parent 3c0cf739f1e1e89d76d55e37542c314efdd75200 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. diff -r 3c0cf739f1e1 -r cdbfbee5c8a9 libdvdcss/common.h --- 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 */