shithub: libdvdcss

Download patch

ref: d938212b4f010a6fd9cba4910981dcd2ca858c26
parent: 26a57f6d2bd5dc363850265f78371d05e1c554c3
author: Diego Biurrun <diego@biurrun.de>
date: Wed Oct 26 01:01:11 EDT 2011

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





--- a/src/common.h
+++ b/src/common.h
@@ -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 */