From 962815c8981b75b20cef13248be50b75aa71e68b Mon Sep 17 00:00:00 2001 From: vladislavbelov Date: Fri, 28 Dec 2018 14:58:35 +0000 Subject: [PATCH] Fix build without PCH for some targets. Patch By: Angen Reviewed By: vladislavbelov Tested By: Stan, vladislavbelov Differential Revision: https://code.wildfiregames.com/D1361 This was SVN commit r21964. --- source/graphics/ShaderDefines.h | 3 ++- source/lib/sysdep/os/win/wnuma.cpp | 2 ++ source/lib/sysdep/os/win/wversion.cpp | 4 +++- source/ps/ConfigDB.h | 2 ++ source/ps/Profiler2.cpp | 3 ++- source/scriptinterface/ScriptInterface.h | 8 ++++---- source/scriptinterface/ScriptRuntime.h | 6 +++--- source/simulation2/system/ComponentManager.h | 4 ++-- 8 files changed, 20 insertions(+), 12 deletions(-) diff --git a/source/graphics/ShaderDefines.h b/source/graphics/ShaderDefines.h index aa1f91d3e1..759e746fd1 100644 --- a/source/graphics/ShaderDefines.h +++ b/source/graphics/ShaderDefines.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2012 Wildfire Games. +/* Copyright (C) 2018 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -23,6 +23,7 @@ #include "ps/CStrIntern.h" #include +#include class CVector4D; diff --git a/source/lib/sysdep/os/win/wnuma.cpp b/source/lib/sysdep/os/win/wnuma.cpp index a933950956..efd43cc44b 100644 --- a/source/lib/sysdep/os/win/wnuma.cpp +++ b/source/lib/sysdep/os/win/wnuma.cpp @@ -34,6 +34,8 @@ #include "lib/sysdep/os/win/win.h" #include "lib/sysdep/os/win/wutil.h" #include "lib/sysdep/os/win/wcpu.h" + +#include #include #if ARCH_X86_X64 diff --git a/source/lib/sysdep/os/win/wversion.cpp b/source/lib/sysdep/os/win/wversion.cpp index 6dcf959d45..df919c676f 100644 --- a/source/lib/sysdep/os/win/wversion.cpp +++ b/source/lib/sysdep/os/win/wversion.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2014 Wildfire Games. +/* Copyright (C) 2018 Wildfire Games. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the @@ -26,6 +26,8 @@ #include "lib/sysdep/os/win/win.h" #include "lib/sysdep/os/win/winit.h" +#include + WINIT_REGISTER_EARLY_INIT(wversion_Init); diff --git a/source/ps/ConfigDB.h b/source/ps/ConfigDB.h index 136e1f784d..90fa84ebbb 100644 --- a/source/ps/ConfigDB.h +++ b/source/ps/ConfigDB.h @@ -31,6 +31,8 @@ #include "ps/CStr.h" #include "ps/Singleton.h" +#include + // Namespace priorities: User supersedes mod supersedes system. // Command-line arguments override everything. diff --git a/source/ps/Profiler2.cpp b/source/ps/Profiler2.cpp index 665e3d3d1d..27ea6198d5 100644 --- a/source/ps/Profiler2.cpp +++ b/source/ps/Profiler2.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2016 Wildfire Games. +/* Copyright (C) 2018 Wildfire Games. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the @@ -31,6 +31,7 @@ #include "third_party/mongoose/mongoose.h" #include +#include #include CProfiler2 g_Profiler2; diff --git a/source/scriptinterface/ScriptInterface.h b/source/scriptinterface/ScriptInterface.h index b47f8fe3b0..6e0ea6aa3a 100644 --- a/source/scriptinterface/ScriptInterface.h +++ b/source/scriptinterface/ScriptInterface.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2017 Wildfire Games. +/* Copyright (C) 2018 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -18,14 +18,14 @@ #ifndef INCLUDED_SCRIPTINTERFACE #define INCLUDED_SCRIPTINTERFACE -#include - #include "lib/file/vfs/vfs_path.h" - #include "maths/Fixed.h" #include "ScriptTypes.h" #include "ps/Errors.h" +#include +#include + ERROR_GROUP(Scripting); ERROR_TYPE(Scripting, SetupFailed); diff --git a/source/scriptinterface/ScriptRuntime.h b/source/scriptinterface/ScriptRuntime.h index 738219f7ef..428dc51369 100644 --- a/source/scriptinterface/ScriptRuntime.h +++ b/source/scriptinterface/ScriptRuntime.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2016 Wildfire Games. +/* Copyright (C) 2018 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -18,11 +18,11 @@ #ifndef INCLUDED_SCRIPTRUNTIME #define INCLUDED_SCRIPTRUNTIME -#include - #include "ScriptTypes.h" #include "ScriptExtraHeaders.h" +#include + #define STACK_CHUNK_SIZE 8192 /** diff --git a/source/simulation2/system/ComponentManager.h b/source/simulation2/system/ComponentManager.h index 06dd87e8a5..ea00eaa3c2 100644 --- a/source/simulation2/system/ComponentManager.h +++ b/source/simulation2/system/ComponentManager.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2017 Wildfire Games. +/* Copyright (C) 2018 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -27,8 +27,8 @@ #include #include - #include +#include #include class IComponent;