From e835528fe8d0d80d63714b980f87801714a8a0b2 Mon Sep 17 00:00:00 2001 From: Jcw87 Date: Sun, 16 Feb 2020 00:10:08 -0800 Subject: [PATCH] MSVC compile fixes. --- CMakeLists.txt | 2 +- Runtime/GameGlobalObjects.hpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e4e17cbfa..b747473f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -75,7 +75,7 @@ if(MSVC) add_compile_definitions(UNICODE=1 _UNICODE=1 __SSE__=1 _CRT_SECURE_NO_WARNINGS=1 D_SCL_SECURE_NO_WARNINGS=1 _SCL_SECURE_NO_DEPRECATE=1 _CRT_NONSTDC_NO_WARNINGS=1 - _ENABLE_EXTENDED_ALIGNED_STORAGE=1) + _ENABLE_EXTENDED_ALIGNED_STORAGE=1 NOMINMAX=1) add_compile_options(/IGNORE:4221 /wd4018 /wd4800 /wd4005 /wd4311 /wd4068 /wd4267 /wd4244 /wd4200 /wd4305 /wd4067 /wd4146 /wd4309 /wd4805 ${VS_OPTIONS}) diff --git a/Runtime/GameGlobalObjects.hpp b/Runtime/GameGlobalObjects.hpp index 9f940c0bf..117796887 100644 --- a/Runtime/GameGlobalObjects.hpp +++ b/Runtime/GameGlobalObjects.hpp @@ -34,6 +34,8 @@ #include "../DataSpec/DNACommon/Tweaks/ITweakGuiColors.hpp" #endif +#include "Runtime/CTextureCache.hpp" + namespace urde { extern class IMain* g_Main; namespace MP1 {