[MPlayer-cvslog] r34267 - trunk/libdvdcss/common.h

diego subversion at mplayerhq.hu
Wed Oct 26 19:02:09 CEST 2011


Author: diego
Date: Wed Oct 26 19:02:09 2011
New Revision: 34267

Log:
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.

Modified:
   trunk/libdvdcss/common.h

Modified: trunk/libdvdcss/common.h
==============================================================================
--- trunk/libdvdcss/common.h	Wed Oct 26 19:02:07 2011	(r34266)
+++ trunk/libdvdcss/common.h	Wed Oct 26 19:02:09 2011	(r34267)
@@ -76,10 +76,6 @@ typedef __int64 off_t;
 #       define stat _stati64
 #   endif
 
-#   ifndef snprintf
-#       define snprintf _snprintf  /* snprintf not defined in mingw32 (bug?) */
-#   endif
-
 #endif
 
 #endif /* DVDCSS_COMMON_H */


More information about the MPlayer-cvslog mailing list