1
0
mirror of https://github.com/microsoft/DirectXMath synced 2024-11-08 05:30:07 +00:00

Code review for DirectXMatrixStack

This commit is contained in:
Chuck Walbourn 2022-04-29 13:40:26 -07:00
parent 057ef1d788
commit c40dc75a5b

View File

@ -16,7 +16,7 @@
#include <memory>
#include <new>
#ifdef WIN32
#ifdef _WIN32
#include <malloc.h>
#endif
@ -204,7 +204,7 @@ namespace DirectX
{
void operator()(void* p) noexcept
{
#ifdef WIN32
#ifdef _WIN32
_aligned_free(p);
#else
free(p);
@ -214,7 +214,7 @@ namespace DirectX
void Allocate(size_t newSize)
{
#ifdef WIN32
#ifdef _WIN32
void* ptr = _aligned_malloc(newSize * sizeof(XMMATRIX), 16);
#else
// This C++17 Standard Library function is currently NOT