From aff44ccdb5ce36d92604a2604f163025d202aa86 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 27 Jan 2014 16:13:13 -0500 Subject: [PATCH] Patched to compile...uh, everywhere. :) --- src/render/direct3d/SDL_render_d3d.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/render/direct3d/SDL_render_d3d.c b/src/render/direct3d/SDL_render_d3d.c index 87edadc83..c7c5432e9 100644 --- a/src/render/direct3d/SDL_render_d3d.c +++ b/src/render/direct3d/SDL_render_d3d.c @@ -1892,7 +1892,8 @@ D3D_DestroyRenderer(SDL_Renderer * renderer) } #endif /* SDL_VIDEO_RENDER_D3D && !SDL_RENDER_DISABLED */ -/* This function needs to always exist for the Dynamic API. */ +#ifdef __WIN32__ +/* This function needs to always exist on Windows, for the Dynamic API. */ IDirect3DDevice9 * SDL_RenderGetD3D9Device(SDL_Renderer * renderer) { @@ -1915,5 +1916,6 @@ SDL_RenderGetD3D9Device(SDL_Renderer * renderer) return device; } +#endif /* vi: set ts=4 sw=4 expandtab: */