diff options
Diffstat (limited to 'sys/d3dvideosink/directx/directx9')
-rw-r--r-- | sys/d3dvideosink/directx/directx9/dx9_d3d.c | 16 | ||||
-rw-r--r-- | sys/d3dvideosink/directx/directx9/dx9_d3d.h | 2 |
2 files changed, 17 insertions, 1 deletions
diff --git a/sys/d3dvideosink/directx/directx9/dx9_d3d.c b/sys/d3dvideosink/directx/directx9/dx9_d3d.c index 5b50aba0b..81e3ece29 100644 --- a/sys/d3dvideosink/directx/directx9/dx9_d3d.c +++ b/sys/d3dvideosink/directx/directx9/dx9_d3d.c @@ -17,6 +17,22 @@ * Boston, MA 02111-1307, USA. */ +#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 +# else +# 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> diff --git a/sys/d3dvideosink/directx/directx9/dx9_d3d.h b/sys/d3dvideosink/directx/directx9/dx9_d3d.h index 28e27fe1e..423f8b468 100644 --- a/sys/d3dvideosink/directx/directx9/dx9_d3d.h +++ b/sys/d3dvideosink/directx/directx9/dx9_d3d.h @@ -22,7 +22,7 @@ #include <windows.h> -#include "../d3d.h" +#include "../directx_d3d.h" #define DX9_D3D_API_CALL_FUNC(api, func_name, ...) (DIRECTX_CALL_COMPONENT_SYMBOL(DIRECTX_D3D(api), D3D9DispatchTable, func_name, __VA_ARGS__)) #define DX9_D3D_COMPONENT_CALL_FUNC(component, func_name, ...) (DIRECTX_CALL_COMPONENT_SYMBOL(component, D3D9DispatchTable, func_name, __VA_ARGS__)) |