mirror of https://github.com/Xaymar/obs-StreamFX
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:
parent
fc21e9698e
commit
e28334d27b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue