d3dvideosink: Add compatibility #defines for older mingw headers

These were removed recently but these mingw headers are still
out there.
This commit is contained in:
Sebastian Dröge 2012-12-27 14:09:03 +01:00
parent 57160c2be7
commit 996e8912f2

View file

@ -25,6 +25,24 @@
#include <gst/video/video.h>
#include <windows.h>
#if defined(__MINGW32__)
# ifndef _OBJC_NO_COM_
# if defined(__cplusplus) && !defined(CINTERFACE)
# if defined(__GNUC__) && __GNUC__ < 3 && !defined(NOCOMATTRIBUTE)
# define DECLARE_INTERFACE_IID_(i,b,d) _COM_interface __attribute__((com_interface)) i : public b
# else
# define DECLARE_INTERFACE_IID_(i,b,d) _COM_interface i : public b
# endif
# elif !defined(DECLARE_INTERFACE_IID_)
# define DECLARE_INTERFACE_IID_(i,b,d) DECLARE_INTERFACE(i)
# endif
# endif
# if !defined(__MSABI_LONG)
# define __MSABI_LONG(x) x ## l
# endif
#endif
#include <d3d9.h>
#include <d3dx9tex.h>