mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
Fixing compile errors from freetype header when building for WinRT.
This commit is contained in:
parent
f5fa39c1b1
commit
0163c2420f
1 changed files with 11 additions and 0 deletions
|
@ -5,7 +5,18 @@
|
|||
|
||||
#define USE_EDTAA3 0
|
||||
|
||||
#include "bx/platform.h"
|
||||
|
||||
#if BX_PLATFORM_WINRT
|
||||
#define generic GenericFromFreeType // WinRT language extensions see "generic" as a keyword... this is stupid
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable : 4245) // conversion from 'int' to 'FT_UInt', signed/unsigned mismatch
|
||||
#include <freetype/freetype.h>
|
||||
#pragma warning(pop)
|
||||
#undef generic
|
||||
#else
|
||||
#include <freetype/freetype.h>
|
||||
#endif
|
||||
|
||||
#include "../common.h"
|
||||
|
||||
|
|
Loading…
Reference in a new issue