d3dvideosink: Add compatibility #defines for older mingw headers
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 27 Dec 2012 13:09:03 +0000 (14:09 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 27 Dec 2012 13:09:51 +0000 (14:09 +0100)
These were removed recently but these mingw headers are still
out there.

sys/d3dvideosink/d3dhelpers.h

index 56c094e..d3467aa 100644 (file)
 #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>