]> git.sesse.net Git - vlc/commitdiff
Ignore D2D headers if they do not work in plain C
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 21 Aug 2011 08:20:54 +0000 (11:20 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 21 Aug 2011 08:20:54 +0000 (11:20 +0300)
This must be a bug in the SDK, so better ignore the header.

configure.ac

index c8070e2b132b1abfc2998543f71f5b3b32be0670..a90b53c86643a743563bed7809662a8efc1acad2 100644 (file)
@@ -3353,14 +3353,12 @@ AC_ARG_ENABLE(direct2d,
   ])
 ])
 AS_IF([test "${enable_direct2d}" != "no"], [
-  AC_LANG_PUSH([C++])
   AC_CHECK_HEADERS(d2d1.h, [
     VLC_ADD_PLUGIN([direct2d])
     VLC_ADD_LIBS([direct2d],[-lgdi32 -lole32])
   ], [
     AC_MSG_WARN([Cannot find Direct2D headers!])
   ])
-  AC_LANG_POP([C++])
 ])
 
 dnl