Fixing compile errors on MSVC.

This commit is contained in:
Mike Popoloski 2014-11-15 15:52:14 -05:00
parent 13ab852de4
commit 48bfab3713
2 changed files with 15 additions and 2 deletions

View File

@ -7,13 +7,13 @@
#include "bx/platform.h"
#if BX_PLATFORM_WINRT
#if BX_COMPILER_MSVC
#define generic GenericFromFreeType // WinRT language extensions see "generic" as a keyword... this is stupid
#define interface InterfaceFromFreeType
#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

View File

@ -6,6 +6,19 @@
#include "bgfx_p.h"
#if BGFX_CONFIG_RENDERER_DIRECT3D12
namespace bgfx
{
RendererContextI* rendererCreateD3D12()
{
return NULL;
}
void rendererDestroyD3D12()
{
}
} // namespace bgfx
#else
namespace bgfx