Przeglądaj źródła

Fix conflict between sal.h and MinGW STL

Moved #include<windows.h> after #include <string> to avoid conflicts
between sal.h and MinGW STL usage of __in and __out as function
parameters.
Garett Bass 13 lat temu
rodzic
commit
0f86204daa
1 zmienionych plików z 7 dodań i 7 usunięć
  1. 7 7
      src/bgfx_p.h

+ 7 - 7
src/bgfx_p.h

@@ -66,13 +66,6 @@ extern void dbgPrintfData(const void* _data, uint32_t _size, const char* _format
 #include <bx/uint32_t.h>
 #include <bx/readerwriter.h>
 
-#if BX_PLATFORM_WINDOWS
-#	include <windows.h>
-#elif BX_PLATFORM_XBOX360
-#	include <malloc.h>
-#	include <xtl.h>
-#endif // BX_PLATFORM_*
-
 #include "dds.h"
 
 #define BGFX_CHUNK_MAGIC_FSH BX_MAKEFOURCC('F', 'S', 'H', 0x1)
@@ -107,6 +100,13 @@ namespace stl {
 #endif // BGFX_CONFIG_USE_TINYSTL
 #include <list>
 
+#if BX_PLATFORM_WINDOWS
+#	include <windows.h>
+#elif BX_PLATFORM_XBOX360
+#	include <malloc.h>
+#	include <xtl.h>
+#endif // BX_PLATFORM_*
+
 #include "config.h"
 
 #include <bx/cpu.h>