On Fri, May 9, 2014 at 1:54 PM, Hendrik Leppkes <[email protected]> wrote: > This fixes build failures on older mingw chains (before 2012). > --- > configure | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) > > diff --git a/configure b/configure > index 47fd690..bdf4f66 100755 > --- a/configure > +++ b/configure > @@ -1505,6 +1505,7 @@ HAVE_LIST=" > $TYPES_LIST > atomics_native > dos_paths > + dxva2api_cobj > dxva2_lib > libc_msvcrt > libdc1394_1 > @@ -4016,6 +4017,16 @@ disabled bzlib || check_lib2 bzlib.h BZ2_bzlibVersion > -lbz2 || disable bzlib > check_lib math.h sin -lm && LIBM="-lm" > enabled vaapi && require vaapi va/va.h vaInitialize -lva > > +enabled dxva2api_h && > + check_cc <<EOF && enable dxva2api_cobj > +#define _WIN32_WINNT 0x0600 > +#define COBJMACROS > +#include <windows.h> > +#include <d3d9.h> > +#include <dxva2api.h> > +int main(void) { IDirectXVideoDecoder *o = NULL; > IDirectXVideoDecoder_Release(o); return 0; } > +EOF > +
Sadly there didn't seem to be a finished macro to make testing this easier, to I had to use check_cc which makes it look kinda bloated - but its tested to work. Better ideas welcome. - Hendrik _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
