mirror of https://github.com/bkaradzic/bgfx
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.
This commit is contained in:
parent
1bb60c30f6
commit
0f86204daa
14
src/bgfx_p.h
14
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>
|
||||
|
|
Loading…
Reference in New Issue