mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-12-29 11:01:23 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue