d3d11: Only build the D3D11 glue code on Windows.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 20 Jul 2020 20:07:06 -0400
changeset 1296 9b3b01f2a9b7
parent 1295 f592791e062e
child 1297 5667281f0da9
d3d11: Only build the D3D11 glue code on Windows.
mojoshader_d3d11.c
--- a/mojoshader_d3d11.c	Mon Jul 20 20:06:34 2020 -0400
+++ b/mojoshader_d3d11.c	Mon Jul 20 20:07:06 2020 -0400
@@ -10,7 +10,6 @@
 #ifdef _WIN32
 #define WIN32_LEAN_AND_MEAN 1
 #include <windows.h> // Include this early to avoid SDL conflicts
-#endif
 
 #define __MOJOSHADER_INTERNAL__ 1
 #include "mojoshader_internal.h"
@@ -912,5 +911,6 @@
 } // MOJOSHADER_d3d11GetError
 
 #endif /* SUPPORT_PROFILE_HLSL */
+#endif /* _WIN32 */
 
 // end of mojoshader_d3d11.c ...