Commit c63b76b3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Ignore D2D headers if they do not work in plain C

This must be a bug in the SDK, so better ignore the header.
parent 31bd28e4
...@@ -3353,14 +3353,12 @@ AC_ARG_ENABLE(direct2d, ...@@ -3353,14 +3353,12 @@ AC_ARG_ENABLE(direct2d,
]) ])
]) ])
AS_IF([test "${enable_direct2d}" != "no"], [ AS_IF([test "${enable_direct2d}" != "no"], [
AC_LANG_PUSH([C++])
AC_CHECK_HEADERS(d2d1.h, [ AC_CHECK_HEADERS(d2d1.h, [
VLC_ADD_PLUGIN([direct2d]) VLC_ADD_PLUGIN([direct2d])
VLC_ADD_LIBS([direct2d],[-lgdi32 -lole32]) VLC_ADD_LIBS([direct2d],[-lgdi32 -lole32])
], [ ], [
AC_MSG_WARN([Cannot find Direct2D headers!]) AC_MSG_WARN([Cannot find Direct2D headers!])
]) ])
AC_LANG_POP([C++])
]) ])
dnl dnl
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment