From 7c1d3c42b3e6aa304a653c41bfe3039f32eed36b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Tue, 20 Aug 2024 00:27:00 +0300 Subject: [PATCH] Remove windows.h include and win32 specific defines, not needed --- src/openrct2/rct12/SawyerChunkReader.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/openrct2/rct12/SawyerChunkReader.cpp b/src/openrct2/rct12/SawyerChunkReader.cpp index 72b47bb969..1e93b99298 100644 --- a/src/openrct2/rct12/SawyerChunkReader.cpp +++ b/src/openrct2/rct12/SawyerChunkReader.cpp @@ -15,16 +15,6 @@ using namespace OpenRCT2; -// malloc is very slow for large allocations in MSVC debug builds as it allocates -// memory on a special debug heap and then initialises all the memory to 0xCC. -#if defined(_WIN32) && defined(DEBUG) -# define __USE_HEAP_ALLOC__ -# ifndef WIN32_LEAN_AND_MEAN -# define WIN32_LEAN_AND_MEAN -# endif -# include -#endif - // Allow chunks to be uncompressed to a maximum of 16 MiB constexpr size_t MAX_UNCOMPRESSED_CHUNK_SIZE = 16 * 1024 * 1024;