Fixed bug 2385 - error: unknown type name 'IDirect3DDevice9'
authorSam Lantinga <slouken@libsdl.org>
Sun, 09 Feb 2014 01:56:41 -0800
changeset 8193b4f1e02f2df6
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
     1.1 --- a/src/render/direct3d/SDL_render_d3d.c	Sun Feb 09 01:49:01 2014 -0800
     1.2 +++ b/src/render/direct3d/SDL_render_d3d.c	Sun Feb 09 01:56:41 2014 -0800
     1.3 @@ -20,6 +20,9 @@
     1.4  */
     1.5  #include "../../SDL_internal.h"
     1.6  
     1.7 +#include "SDL_render.h"
     1.8 +#include "SDL_system.h"
     1.9 +
    1.10  #if SDL_VIDEO_RENDER_D3D && !SDL_RENDER_DISABLED
    1.11  
    1.12  #include "../../core/windows/SDL_windows.h"
    1.13 @@ -27,7 +30,6 @@
    1.14  #include "SDL_hints.h"
    1.15  #include "SDL_loadso.h"
    1.16  #include "SDL_syswm.h"
    1.17 -#include "SDL_system.h"
    1.18  #include "../SDL_sysrender.h"
    1.19  #include "../../video/windows/SDL_windowsvideo.h"
    1.20  
    1.21 @@ -1916,6 +1918,6 @@
    1.22  
    1.23      return device;
    1.24  }
    1.25 -#endif
    1.26 +#endif /* __WIN32__ */
    1.27  
    1.28  /* vi: set ts=4 sw=4 expandtab: */