From c40dc75a5b8f43eb01057c7eeac4e87109b8296f Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Fri, 29 Apr 2022 13:40:26 -0700 Subject: [PATCH] Code review for DirectXMatrixStack --- MatrixStack/DirectXMatrixStack.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MatrixStack/DirectXMatrixStack.h b/MatrixStack/DirectXMatrixStack.h index e3bf931..46fe263 100644 --- a/MatrixStack/DirectXMatrixStack.h +++ b/MatrixStack/DirectXMatrixStack.h @@ -16,7 +16,7 @@ #include #include -#ifdef WIN32 +#ifdef _WIN32 #include #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