Skip to content
Snippets Groups Projects
Commit 4118b49f authored by Martin Storsjö's avatar Martin Storsjö
Browse files

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.
parent 7e37b7ff
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment