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

View file

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