dshow_filter: fix compilation with mingw-w64
authorRafaël Carré <funman@videolan.org>
Thu, 16 Feb 2012 22:15:59 +0000 (17:15 -0500)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 16 Feb 2012 22:25:59 +0000 (23:25 +0100)
Closes ticket #999
NO_DSHOW_STRSAFE asks dshow.h header to not use secure string function
replacements.
Using secure replacements would break mingw.org compatibility as they don't
declare/define those functions.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavdevice/dshow_filter.c
libavdevice/dshow_pin.c

index 64e8306..526e8b6 100644 (file)
@@ -19,6 +19,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#define NO_DSHOW_STRSAFE
 #include "dshow.h"
 
 DECLARE_QUERYINTERFACE(libAVFilter,
index 5e14108..d4463f6 100644 (file)
@@ -19,6 +19,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#define NO_DSHOW_STRSAFE
 #include "dshow.h"
 
 #include <stddef.h>