From c98301d175b8b1b80b2f480bc29e0703cf12c350 Mon Sep 17 00:00:00 2001 From: Amos <48657826+Mauler125@users.noreply.github.com> Date: Thu, 6 Jan 2022 17:30:10 +0100 Subject: [PATCH] Fix LZHAM recompiling pch for each implementation file --- r5dev/thirdparty/lzham/include/lzham_core.h | 3 ++- r5dev/thirdparty/lzham/lzham_mem.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/r5dev/thirdparty/lzham/include/lzham_core.h b/r5dev/thirdparty/lzham/include/lzham_core.h index 3d4f3d3e..784ec99c 100644 --- a/r5dev/thirdparty/lzham/include/lzham_core.h +++ b/r5dev/thirdparty/lzham/include/lzham_core.h @@ -1,7 +1,6 @@ // File: lzham_core.h // See Copyright Notice and license at the end of include/lzham.h #pragma once -#include "core/stdafx.h" #if defined(_MSC_VER) #pragma warning (disable: 4127) // conditional expression is constant @@ -136,6 +135,8 @@ #define LZHAM_FORCE_INLINE inline #define LZHAM_NOTE_UNUSED(x) (void)x + +#include #endif #if LZHAM_LITTLE_ENDIAN_CPU diff --git a/r5dev/thirdparty/lzham/lzham_mem.cpp b/r5dev/thirdparty/lzham/lzham_mem.cpp index 0c961ed6..6b5a9ff3 100644 --- a/r5dev/thirdparty/lzham/lzham_mem.cpp +++ b/r5dev/thirdparty/lzham/lzham_mem.cpp @@ -10,7 +10,7 @@ using namespace lzham; #define LZHAM_MEM_STATS 0 #ifndef LZHAM_USE_WIN32_API - #define _msize malloc_usable_size + //#define _msize malloc_usable_size #endif namespace lzham