[vlc-commits] dshow: Define STRSAFE_NO_DEPRECATE while building
Martin Storsjö
git at videolan.org
Wed Feb 28 10:59:01 CET 2018
vlc | branch: master | Martin Storsjö <martin at martin.st> | Fri Dec 15 22:52:40 2017 +0200| [4118b49f06a1c315102b54695703d98dd218c9c9] | committer: Martin Storsjö
dshow: Define STRSAFE_NO_DEPRECATE while building
The mingw dshow.h includes strsafe.h. Normally, strsafe.h deprecates
certain functions like strcpy and strcat, adding defines like
#define strcpy strcpy_instead_use_StringCbCopyA_or_StringCchCopyA
libcxx contains code that declares "using ::strcpy;" and "using ::strcat;"
within a namespace, which breaks if strsafe.h has been included before.
Add this define to skip the deprecation defines in strsafe.h, fixing
buliding with libcxx.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4118b49f06a1c315102b54695703d98dd218c9c9
---
modules/access/Makefile.am | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/access/Makefile.am b/modules/access/Makefile.am
index d193b27935..956bfd0ebe 100644
--- a/modules/access/Makefile.am
+++ b/modules/access/Makefile.am
@@ -157,6 +157,7 @@ endif
libdshow_plugin_la_SOURCES = access/dshow/vlc_dshow.h access/dshow/dshow.cpp access/dshow/access.h \
access/dshow/filter.cpp access/dshow/filter.h access/dshow/crossbar.cpp
+libdshow_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DSTRSAFE_NO_DEPRECATE
libdshow_plugin_la_LIBADD = $(LIBCOM) -loleaut32 -luuid -lstrmiids -lksuser
if HAVE_WIN32_DESKTOP
access_LTLIBRARIES += libdshow_plugin.la
More information about the vlc-commits
mailing list