Fixing compile errors from freetype header when building for WinRT.

This commit is contained in:
Mike Popoloski 2014-11-09 18:26:10 -05:00
parent f5fa39c1b1
commit 0163c2420f

View file

@ -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"