Skip to content

Commit

Permalink
Code review for DirectXMatrixStack
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Apr 29, 2022
1 parent 057ef1d commit c40dc75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MatrixStack/DirectXMatrixStack.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <memory>
#include <new>

#ifdef WIN32
#ifdef _WIN32
#include <malloc.h>
#endif

Expand Down Expand Up @@ -204,7 +204,7 @@ namespace DirectX
{
void operator()(void* p) noexcept
{
#ifdef WIN32
#ifdef _WIN32
_aligned_free(p);
#else
free(p);
Expand All @@ -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
Expand Down

0 comments on commit c40dc75

Please sign in to comment.