Skip to content

Commit

Permalink
Move Platform.hpp inclusion into Common.hpp
Browse files Browse the repository at this point in the history
Except xrLC_LightStab.h
Add XXX to CommonImportExport.inl
  • Loading branch information
Xottab-DUTY committed Dec 22, 2017
1 parent 246fba2 commit 6aa30b9
Show file tree
Hide file tree
Showing 38 changed files with 6 additions and 44 deletions.
1 change: 0 additions & 1 deletion Externals/OPCODE/pch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#include <algorithm>

#include "Common/Platform.hpp"
#include "Common/Common.hpp"
#include "xrCore/xrCore.h"
#include "xrCore/doug_lea_allocator.h"
Expand Down
1 change: 0 additions & 1 deletion Externals/cximage/ximacfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ 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
Expand Down
1 change: 1 addition & 0 deletions src/Common/Common.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

#include "Common/Config.hpp"
#include "Common/Platform.hpp"
#include "Common/CommonImportExport.inl"
#include "Include/xrAPI/xrAPI.h"
4 changes: 4 additions & 0 deletions src/Common/CommonImportExport.inl
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#pragma once

// XXX: Add remaining defines
// XXX: Get rid of NO_ENGINE_API
// XXX: Get rid of DLL_API (maybe)

#ifdef XRAPI_EXPORTS
#define XRAPI_API XR_EXPORT
#else
Expand Down
1 change: 0 additions & 1 deletion src/Layers/xrAPI/stdafx.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#pragma once

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

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

#ifdef _DEBUG
Expand Down
1 change: 0 additions & 1 deletion src/Layers/xrRenderPC_R2/stdafx.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

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

#ifdef _DEBUG
Expand Down
1 change: 0 additions & 1 deletion src/Layers/xrRenderPC_R3/stdafx.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

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

#ifdef _DEBUG
Expand Down
1 change: 0 additions & 1 deletion src/Layers/xrRenderPC_R4/stdafx.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

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

#ifdef _DEBUG
Expand Down
4 changes: 0 additions & 4 deletions src/utils/ETools/StdAfx.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#define ENGINE_API
#define NO_XRC_STATS

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

Expand All @@ -17,6 +16,3 @@
#pragma warning(disable : 4786) // too long names
#pragma warning(disable : 4503) // decorated name length exceeded
#pragma warning(disable : 4251) // object needs DLL interface

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
4 changes: 0 additions & 4 deletions src/utils/LWO/StdAfx.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
#pragma once

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

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
1 change: 0 additions & 1 deletion src/utils/mp_configs_verifyer/pch.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

#include "Common/Platform.hpp"
#include "Common/Common.hpp"
#include "xrCore/xrCore.h"
#include "xrCore/LocatorAPI.h"
Expand Down
1 change: 0 additions & 1 deletion src/utils/mp_screenshots_info/pch.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

#include "Common/Platform.hpp"
#include "Common/Common.hpp"
#include "xrCore/xrCore.h"
#include "xrCore/LocatorAPI.h"
Expand Down
1 change: 0 additions & 1 deletion src/utils/xrAI/StdAfx.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

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

Expand Down
1 change: 0 additions & 1 deletion src/utils/xrCompress/StdAfx.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

//. #define MOD_COMPRESS

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

Expand Down
1 change: 0 additions & 1 deletion src/utils/xrDO_Light/StdAfx.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

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

Expand Down
2 changes: 0 additions & 2 deletions src/utils/xrDXT/StdAfx.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

#include "Common/Platform.hpp"
#include "Common/Common.hpp"
#include "xrCore/xrCore.h"
#include <io.h>
Expand All @@ -18,5 +17,4 @@
((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8) | ((DWORD)(BYTE)(ch2) << 16) | ((DWORD)(BYTE)(ch3) << 24))
#endif // defined(MAKEFOURCC)

#pragma comment(lib, "xrCore.lib")
#pragma warning(disable : 4995)
1 change: 0 additions & 1 deletion src/utils/xrLC/Build.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#pragma once
#include "Common/Platform.hpp"
#include "xrCore/FS.h"
#include "utils/Shader_xrLC.h"
struct STextureParams;
Expand Down
1 change: 0 additions & 1 deletion src/utils/xrLC/StdAfx.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#pragma once
#include "Common/Platform.hpp"
#include "Common/Common.hpp"
#include "utils/xrLC_Light/xrLC_Light.h"

Expand Down
1 change: 0 additions & 1 deletion src/utils/xrLCUtil/pch.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#pragma once
#include "Common/Platform.hpp"
#include "Common/Common.hpp"
#include "xrLCUtil.hpp"
1 change: 0 additions & 1 deletion src/utils/xrLC_Light/stdafx.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

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

//#define COLLECT_EXECUTION_STATS
Expand Down
2 changes: 1 addition & 1 deletion src/utils/xrLC_LightStab/xrLC_LightStab.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "xrlc_lightstab.h"
#include "xrLC_LightStab.h"
#include "utils/xrLC_Light/net_light.h"

#include "utils/xrLC_Light/lightstab_interface.h"
Expand Down
1 change: 0 additions & 1 deletion src/utils/xrMiscMath/pch.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#pragma once

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

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

Expand Down
1 change: 0 additions & 1 deletion src/utils/xrSE_Factory/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

#pragma once

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

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

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

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

#include "xrCore/xrCore.h"
Expand Down
2 changes: 0 additions & 2 deletions src/xrCore/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

#pragma warning(disable : 4661)

#include "Common/Platform.hpp"
#include "Common/Common.hpp"
#include "xrCore.h"
#include "Common/Util.hpp"
//#include "Include/xrAPI/xrAPI.h"
1 change: 0 additions & 1 deletion src/xrD3D9-Null/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#define D3D_DEBUG_INFO
#endif

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

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

#ifdef _EDITOR
Expand Down
1 change: 0 additions & 1 deletion src/xrGame/StdAfx.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

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

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

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

Expand Down
1 change: 0 additions & 1 deletion src/xrMisc/pch.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#pragma once

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

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

Expand Down
1 change: 0 additions & 1 deletion src/xrParticles/stdafx.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

#include "Common/Platform.hpp"
#include "Common/Common.hpp"
#include "xrCore/xrCore.h"
#include "psystem.h"
1 change: 0 additions & 1 deletion src/xrPhysics/stdafx.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

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

#define MTL_EXPORT_API
Expand Down
1 change: 0 additions & 1 deletion src/xrScriptEngine/pch.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#pragma once
#include "Common/Platform.hpp"
#include "Common/Common.hpp"
#include "xrScriptEngine.hpp"
1 change: 0 additions & 1 deletion src/xrSound/stdafx.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

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

Expand Down

0 comments on commit 6aa30b9

Please sign in to comment.