mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
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:
parent
57160c2be7
commit
996e8912f2
1 changed files with 18 additions and 0 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue