Patched to compile...uh, everywhere. :)
authorRyan C. Gordon <icculus@icculus.org>
Mon, 27 Jan 2014 16:13:13 -0500
changeset 8131 311302021bc9
parent 8130 506eb1e0ae85
child 8132 06922987b6ff
Patched to compile...uh, everywhere. :)
src/render/direct3d/SDL_render_d3d.c
--- a/src/render/direct3d/SDL_render_d3d.c	Mon Jan 27 16:10:15 2014 -0500
+++ b/src/render/direct3d/SDL_render_d3d.c	Mon Jan 27 16:13:13 2014 -0500
@@ -1892,7 +1892,8 @@
 }
 #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 @@
 
     return device;
 }
+#endif
 
 /* vi: set ts=4 sw=4 expandtab: */