0ad/source/lib/sysdep/rtl/msc/msc.cpp
janwas 2382899a87 add system-specific AllocateAligned call (because _mm_malloc isnt as portable as hoped)
("RTL" directly has been added to sysdep - requires update of workspace)

This was SVN commit r6156.
2008-06-29 10:30:33 +00:00

13 lines
249 B
C++

#include "precompiled.h"
#include "lib/sysdep/rtl.h"
void* rtl_AllocateAligned(size_t size, size_t alignment)
{
return _aligned_malloc(size, alignment);
}
void rtl_FreeAligned(void* alignedPointer)
{
_aligned_free(alignedPointer);
}