Fixes #2529, guard SDL_d3math.* with the proper defines
authorGabriel Jacobo <gabomdq@gmail.com>
Sat, 10 May 2014 16:23:06 -0300
changeset 87643d5ef7548688
parent 8763 a8ef3ac69e3d
child 8765 cdf0aad10fea
Fixes #2529, guard SDL_d3math.* with the proper defines
src/render/SDL_d3dmath.c
src/render/SDL_d3dmath.h
     1.1 --- a/src/render/SDL_d3dmath.c	Sat May 10 16:13:22 2014 -0300
     1.2 +++ b/src/render/SDL_d3dmath.c	Sat May 10 16:23:06 2014 -0300
     1.3 @@ -19,6 +19,8 @@
     1.4    3. This notice may not be removed or altered from any source distribution.
     1.5  */
     1.6  #include "../SDL_internal.h"
     1.7 +
     1.8 +#if (SDL_VIDEO_RENDER_D3D || SDL_VIDEO_RENDER_D3D11) && !SDL_RENDER_DISABLED
     1.9  #include "SDL_stdinc.h"
    1.10  
    1.11  #include "SDL_d3dmath.h"
    1.12 @@ -126,6 +128,9 @@
    1.13      m._33 = 1.0f;
    1.14      m._44 = 1.0f;
    1.15      return m;
    1.16 +
    1.17  }
    1.18  
    1.19 +#endif /* (SDL_VIDEO_RENDER_D3D || SDL_VIDEO_RENDER_D3D11) && !SDL_RENDER_DISABLED */
    1.20 +
    1.21  /* vi: set ts=4 sw=4 expandtab: */
     2.1 --- a/src/render/SDL_d3dmath.h	Sat May 10 16:13:22 2014 -0300
     2.2 +++ b/src/render/SDL_d3dmath.h	Sat May 10 16:23:06 2014 -0300
     2.3 @@ -20,6 +20,7 @@
     2.4  */
     2.5  #include "../SDL_internal.h"
     2.6  
     2.7 +#if (SDL_VIDEO_RENDER_D3D || SDL_VIDEO_RENDER_D3D11) && !SDL_RENDER_DISABLED
     2.8  
     2.9  /* Direct3D matrix math functions */
    2.10  
    2.11 @@ -66,4 +67,6 @@
    2.12  Float4X4 MatrixRotationY(float r);
    2.13  Float4X4 MatrixRotationZ(float r);
    2.14  
    2.15 +#endif /* (SDL_VIDEO_RENDER_D3D || SDL_VIDEO_RENDER_D3D11) && !SDL_RENDER_DISABLED */
    2.16 +
    2.17  /* vi: set ts=4 sw=4 expandtab: */