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'
Sam Lantinga 2014-02-09 01:56:41 -08:00
parent b331ada815
commit 3ab3ea642d
1 changed files with 4 additions and 2 deletions

View File

@ -20,6 +20,9 @@
*/ */
#include "../../SDL_internal.h" #include "../../SDL_internal.h"
#include "SDL_render.h"
#include "SDL_system.h"
#if SDL_VIDEO_RENDER_D3D && !SDL_RENDER_DISABLED #if SDL_VIDEO_RENDER_D3D && !SDL_RENDER_DISABLED
#include "../../core/windows/SDL_windows.h" #include "../../core/windows/SDL_windows.h"
@ -27,7 +30,6 @@
#include "SDL_hints.h" #include "SDL_hints.h"
#include "SDL_loadso.h" #include "SDL_loadso.h"
#include "SDL_syswm.h" #include "SDL_syswm.h"
#include "SDL_system.h"
#include "../SDL_sysrender.h" #include "../SDL_sysrender.h"
#include "../../video/windows/SDL_windowsvideo.h" #include "../../video/windows/SDL_windowsvideo.h"
@ -1916,6 +1918,6 @@ SDL_RenderGetD3D9Device(SDL_Renderer * renderer)
return device; return device;
} }
#endif #endif /* __WIN32__ */
/* vi: set ts=4 sw=4 expandtab: */ /* vi: set ts=4 sw=4 expandtab: */