- Fixed compilation with MinGW and did some cleanup.

This commit is contained in:
drfrag 2020-01-09 13:46:31 +01:00 committed by alexey.lysiuk
commit 68f338b134
5 changed files with 16 additions and 42 deletions

View file

@ -78,7 +78,7 @@ void RenderMemory::Clear()
static void* Aligned_Alloc(size_t alignment, size_t size)
{
void* ptr;
#if defined _MSC_VER
#if defined (_MSC_VER) || defined (__MINGW32__)
ptr = _aligned_malloc(size, alignment);
if (!ptr)
throw std::bad_alloc();