Fixed bug 2385 - error: unknown type name 'IDirect3DDevice9'
authorSam Lantinga <slouken@libsdl.org>
Sun, 09 Feb 2014 01:56:41 -0800
changeset 8193 b4f1e02f2df6
parent 8192 560c66a04082
child 8194 aada7c5bd410
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
--- a/src/render/direct3d/SDL_render_d3d.c	Sun Feb 09 01:49:01 2014 -0800
+++ b/src/render/direct3d/SDL_render_d3d.c	Sun Feb 09 01:56:41 2014 -0800
@@ -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 @@
 
     return device;
 }
-#endif
+#endif /* __WIN32__ */
 
 /* vi: set ts=4 sw=4 expandtab: */