util-memory: Fix alligned_alloc for MSVC

Microsofts _aligned_malloc has size and alignment switched around, which causes an unwanted exception.
This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2019-01-24 20:17:35 +01:00
parent fc21e9698e
commit e28334d27b
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@
#include <cstdlib>
#ifdef _MSC_VER
#define aligned_alloc _aligned_malloc
#define aligned_alloc(a, s) _aligned_malloc(s, a)
#define aligned_free _aligned_free
#else
#define aligned_free free