Skip to content

Commit

Permalink
Include Common/Common.hpp in the every precompiled header
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Nov 11, 2017
1 parent b7252ea commit a16f29d
Show file tree
Hide file tree
Showing 34 changed files with 37 additions and 30 deletions.
1 change: 1 addition & 0 deletions Externals/OPCODE/pch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <algorithm>

#include "Common/Platform.hpp"
#include "Common/Common.hpp"
#include "xrCore/xrCore.h"
#include "xrCore/doug_lea_allocator.h"
#include "xrCore/memory_allocator_options.h"
Expand Down
1 change: 1 addition & 0 deletions Externals/cximage/ximacfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ extern "C" void* cxrealloc(void* ptr, size_t size);
#ifdef CXIMAGE_AS_SHARED_LIBRARY //must be defined in Release_Shared configuration

#include "Common/Platform.hpp"
#include "Common/Common.hpp"
// XXX: dirty hack.
#undef max
#undef min
Expand Down
1 change: 1 addition & 0 deletions src/Layers/xrAPI/stdafx.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#pragma once

#include "Common/Platform.hpp"
#include "Common/Common.hpp"
1 change: 1 addition & 0 deletions src/Layers/xrRenderPC_R1/stdafx.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include "Common/Platform.hpp"
#include "Common/Common.hpp"

#ifdef _DEBUG
#define D3D_DEBUG_INFO
Expand Down
5 changes: 1 addition & 4 deletions src/Layers/xrRenderPC_R2/stdafx.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently

#pragma once

#include "Common/Platform.hpp"
#include "Common/Common.hpp"

#ifdef _DEBUG
#define D3D_DEBUG_INFO
Expand Down
1 change: 1 addition & 0 deletions src/Layers/xrRenderPC_R3/stdafx.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include "Common/Platform.hpp"
#include "Common/Common.hpp"

#ifdef _DEBUG
#define D3D_DEBUG_INFO
Expand Down
1 change: 1 addition & 0 deletions src/Layers/xrRenderPC_R4/stdafx.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include "Common/Platform.hpp"
#include "Common/Common.hpp"

#ifdef _DEBUG
#define D3D_DEBUG_INFO
Expand Down
4 changes: 3 additions & 1 deletion src/editors/xrManagedApi/Pch.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#pragma once
#include "Common/Platform.hpp"
#include "Common/Common.hpp"

// XXX nitrocaster: move to src/Common.hpp (common engine header)
#define DLL_API __declspec(dllimport)
#define DLL_API XR_IMPORT
1 change: 1 addition & 0 deletions src/editors/xrWeatherEditor/pch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#pragma managed(push, off)
#include "Common/Platform.hpp"
#include "Common/Common.hpp"
#include "xrCommon/inlining_macros.h"
#pragma managed(pop)

Expand Down
1 change: 1 addition & 0 deletions src/utils/ETools/StdAfx.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#define NO_XRC_STATS

#include "Common/Platform.hpp"
#include "Common/Common.hpp"
#include "xrCore/xrCore.h"

#pragma warning(push)
Expand Down
19 changes: 2 additions & 17 deletions src/utils/LWO/StdAfx.h
Original file line number Diff line number Diff line change
@@ -1,28 +1,13 @@
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//

#if !defined(AFX_STDAFX_H__626866A3_43B1_4A3E_ABC5_720F67799F19__INCLUDED_)
#define AFX_STDAFX_H__626866A3_43B1_4A3E_ABC5_720F67799F19__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

// Insert your headers here
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#include "Common/Platform.hpp"
#include "Common/Common.hpp"

#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <limits.h>

// TODO: reference additional headers your program requires here

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STDAFX_H__626866A3_43B1_4A3E_ABC5_720F67799F19__INCLUDED_)
1 change: 1 addition & 0 deletions src/utils/xrAI/StdAfx.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include "Common/Platform.hpp"
#include "Common/Common.hpp"
#include "xrCore/xrCore.h"

#pragma warning(push)
Expand Down
1 change: 1 addition & 0 deletions src/utils/xrCompress/StdAfx.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//. #define MOD_COMPRESS

#include "Common/Platform.hpp"
#include "Common/Common.hpp"
#include "xrCore/xrCore.h"

#include "lzo/lzo1x.h"
Expand Down
1 change: 1 addition & 0 deletions src/utils/xrDO_Light/StdAfx.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include "Common/Platform.hpp"
#include "Common/Common.hpp"
#include "xrCore/xrCore.h"

#pragma warning(push)
Expand Down
1 change: 1 addition & 0 deletions src/utils/xrDXT/StdAfx.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include "Common/Platform.hpp"
#include "Common/Common.hpp"
#include "xrCore/xrCore.h"
#include <io.h>
#include <fcntl.h>
Expand Down
1 change: 1 addition & 0 deletions src/utils/xrLC/StdAfx.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once
#include "Common/Platform.hpp"
#include "Common/Common.hpp"
#include "utils/xrLC_Light/xrLC_Light.h"

#define ENGINE_API // fake, to enable sharing with engine
Expand Down
1 change: 1 addition & 0 deletions src/utils/xrLCUtil/pch.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#pragma once
#include "Common/Platform.hpp"
#include "Common/Common.hpp"
#include "xrLCUtil.hpp"
1 change: 1 addition & 0 deletions src/utils/xrLC_Light/stdafx.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include "Common/Platform.hpp"
#include "Common/Common.hpp"

//#define COLLECT_EXECUTION_STATS

Expand Down
1 change: 1 addition & 0 deletions src/utils/xrMiscMath/pch.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#pragma once

#include "Common/Platform.hpp"
#include "Common/Common.hpp"
1 change: 1 addition & 0 deletions src/utils/xrQSlim/src/stdafx.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include "Common/Platform.hpp"
#include "Common/Common.hpp"
#include "xrCore/xrCore.h"

/************************************************************************
Expand Down
1 change: 1 addition & 0 deletions src/utils/xrSE_Factory/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#pragma once

#include "Common/Platform.hpp"
#include "Common/Common.hpp"
#include "xrCore/xrCore.h"

#define ENGINE_API
Expand Down
1 change: 1 addition & 0 deletions src/xrAICore/pch.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#pragma once

#include "Common/Platform.hpp"
#include "Common/Common.hpp"
1 change: 1 addition & 0 deletions src/xrCDB/StdAfx.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include "Common/Platform.hpp"
#include "Common/Common.hpp"

#include "xrCore/xrCore.h"

Expand Down
1 change: 1 addition & 0 deletions src/xrCore/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#pragma warning(disable : 4661)

#include "Common/Platform.hpp"
#include "Common/Common.hpp"
#include "xrCore.h"
#include "Common/Util.hpp"
//#include "Include/xrAPI/xrAPI.h"
5 changes: 1 addition & 4 deletions src/xrD3D9-Null/stdafx.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#pragma once

#ifdef _DEBUG
#define D3D_DEBUG_INFO
#endif

#include "Common/Platform.hpp"
#include "Common/Common.hpp"
#include <stdlib.h>
#include <objbase.h>
#include <d3d9.h>
Expand Down
1 change: 1 addition & 0 deletions src/xrEngine/stdafx.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include "Common/Platform.hpp"
#include "Common/Common.hpp"

#ifdef _EDITOR
#include "editors/ECore/stdafx.h"
Expand Down
1 change: 1 addition & 0 deletions src/xrGame/StdAfx.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include "Common/Platform.hpp"
#include "Common/Common.hpp"

#pragma warning(push)
#pragma warning(disable : 4995)
Expand Down
1 change: 1 addition & 0 deletions src/xrGameSpy/stdafx.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include "Common/Platform.hpp"
#include "Common/Common.hpp"
#include "xrCore/xrCore.h"

#include <GameSpy/Common/gsCommon.h>
Expand Down
1 change: 1 addition & 0 deletions src/xrMisc/pch.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#pragma once

#include "Common/Platform.hpp"
#include "Common/Common.hpp"
1 change: 1 addition & 0 deletions src/xrNetServer/stdafx.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include "Common/Platform.hpp"
#include "Common/Common.hpp"
#include "xrCore/xrCore.h"

#pragma warning(push)
Expand Down
1 change: 1 addition & 0 deletions src/xrParticles/stdafx.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

#include "Common/Platform.hpp"
#include "Common/Common.hpp"
#include "xrCore/xrCore.h"
#include "psystem.h"
1 change: 1 addition & 0 deletions src/xrPhysics/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#pragma once

#include "Common/Platform.hpp"
#include "Common/Common.hpp"

#define MTL_EXPORT_API
#define ENGINE_API
Expand Down
1 change: 1 addition & 0 deletions src/xrScriptEngine/pch.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
#include "Common/Platform.hpp"
#include "Common/Common.hpp"
#include "xrScriptEngine.hpp"
#include "Include/xrAPI/xrAPI.h"
5 changes: 1 addition & 4 deletions src/xrSound/stdafx.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#pragma once

#include "Common/Platform.hpp"
#include "Common/Common.hpp"
#include "xrCore/xrCore.h"

// mmsystem.h
Expand Down

0 comments on commit a16f29d

Please sign in to comment.