mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-21 06:13:07 +01:00
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:
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>
|
||||
|
||||
Reference in New Issue
Block a user