From 3ab3ea642db9df7693909b0c7306aeb9230d9742 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 9 Feb 2014 01:56:41 -0800 Subject: [PATCH] Fixed bug 2385 - error: unknown type name 'IDirect3DDevice9' Sandu Liviu Catalin I'm unable to compile the latest SDL (directly from the repository) even though I disabled every DirectX option since I don't need DirectX. I allways het these errors: D:\DevLibs\SDL\src\render\direct3d\SDL_render_d3d.c:1897:1: error: unknown type name 'IDirect3DDevice9' D:\DevLibs\SDL\src\render\direct3d\SDL_render_d3d.c:1898:25: error: unknown type name 'SDL_Renderer' --- src/render/direct3d/SDL_render_d3d.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/render/direct3d/SDL_render_d3d.c b/src/render/direct3d/SDL_render_d3d.c index f02b41e25..63dfff61c 100644 --- a/src/render/direct3d/SDL_render_d3d.c +++ b/src/render/direct3d/SDL_render_d3d.c @@ -20,6 +20,9 @@ */ #include "../../SDL_internal.h" +#include "SDL_render.h" +#include "SDL_system.h" + #if SDL_VIDEO_RENDER_D3D && !SDL_RENDER_DISABLED #include "../../core/windows/SDL_windows.h" @@ -27,7 +30,6 @@ #include "SDL_hints.h" #include "SDL_loadso.h" #include "SDL_syswm.h" -#include "SDL_system.h" #include "../SDL_sysrender.h" #include "../../video/windows/SDL_windowsvideo.h" @@ -1916,6 +1918,6 @@ SDL_RenderGetD3D9Device(SDL_Renderer * renderer) return device; } -#endif +#endif /* __WIN32__ */ /* vi: set ts=4 sw=4 expandtab: */